混合狀態結合
BlendEquation
和BlendFunction
和enabled
標志來定義在渲染時用于合并源片段和目標片段的完全混合狀態。這是使用Appearance#renderState
的自定義呈現狀態時的助手。
Members
(static, constant) ADDITIVE_BLEND : Object
使用添加劑混合啟用混合,
source(source.alpha) + destination
。
(static, constant) ALPHA_BLEND : Object
使用alpha混合啟用混合,
source(source.alpha) + destination(1 - source.alpha)
。
(static, constant) DISABLED : Object
混合被禁用。
(static, constant) PRE_MULTIPLIED_ALPHA_BLEND : Object
使用alpha與預乘alpha、
source + destination(1 - source.alpha)
混合啟用混合。