BlendFactor

BlendFactor enumeration

Blend factor specify pixel arithmetic.

public enum BlendFactor

Values

Name Value Description
Zero 0 The blend factor is vec4(0)
One 1 The blend factor is vec4(1)
SrcColor 2 The blend factor is src.rgba
OneMinusSrcColor 3 The blend factor is vec4(1) - src.rgba
DstColor 4 The blend factor is dst.rgba
OneMinusDstColor 5 The blend factor is vec4(1) - dst.rgba
SrcAlpha 6 The blend factor is vec4(src.a)
OneMinusSrcAlpha 7 The blend factor is vec4(1 - src.a)
DstAlpha 8 The blend factor is vec4(dst.a)
OneMinusDstAlpha 9 The blend factor is vec4(1 - dst.a)
ConstantColor 10 The blend factor is c where c is specified in BlendColor
OneMinusConstantColor 11 The blend factor is vec4(1) - c where c is specified in BlendColor
ConstantAlpha 12 The blend factor is vec4(c.a) where c is specified in BlendColor
OneMinusConstantAlpha 13 The blend factor is vec4(1 - c.a) where c is specified in BlendColor
SrcAlphaSaturate 14 The blend factor is min(src.a, 1 - dst.a)

See Also