Enum BlendFactor

BlendFactor enumeration

Blend factor specify pixel arithmetic.

public enum BlendFactor

Values

NameValueDescription
Zero0The blend factor is vec4(0)
One1The blend factor is vec4(1)
SrcColor2The blend factor is src.rgba
OneMinusSrcColor3The blend factor is vec4(1) - src.rgba
DstColor4The blend factor is dst.rgba
OneMinusDstColor5The blend factor is vec4(1) - dst.rgba
SrcAlpha6The blend factor is vec4(src.a)
OneMinusSrcAlpha7The blend factor is vec4(1 - src.a)
DstAlpha8The blend factor is vec4(dst.a)
OneMinusDstAlpha9The blend factor is vec4(1 - dst.a)
ConstantColor10The blend factor is c where c is specified in BlendColor
OneMinusConstantColor11The blend factor is vec4(1) - c where c is specified in BlendColor
ConstantAlpha12The blend factor is vec4(c.a) where c is specified in BlendColor
OneMinusConstantAlpha13The blend factor is vec4(1 - c.a) where c is specified in BlendColor
SrcAlphaSaturate14The blend factor is min(src.a, 1 - dst.a)

See Also