BlendFactor enum

A coefficient that scales one input to the blend equation.

When blending is enabled for a color attachment, the new (source) color produced by the fragment shader is combined with the existing (destination) color already in the attachment. Each side is first multiplied by a BlendFactor and then combined by a BlendOperation:

result.rgb = (sourceColorFactor * source.rgb) <op> (destinationColorFactor * destination.rgb);
result.a   = (sourceAlphaFactor * source.a)   <op> (destinationAlphaFactor * destination.a);

The "blend color" referenced by some factors is a separate constant color supplied to the blend equation, distinct from the source and destination colors.

Inheritance
Available extensions

Values

zero → const BlendFactor

Multiplies the input by zero, dropping it from the blend.

one → const BlendFactor

Multiplies the input by one, leaving it unchanged.

sourceColor → const BlendFactor

Multiplies the input by the source color, component by component.

oneMinusSourceColor → const BlendFactor

Multiplies the input by one minus the source color, component by component.

sourceAlpha → const BlendFactor

Multiplies the input by the source alpha.

oneMinusSourceAlpha → const BlendFactor

Multiplies the input by one minus the source alpha.

destinationColor → const BlendFactor

Multiplies the input by the destination color, component by component.

oneMinusDestinationColor → const BlendFactor

Multiplies the input by one minus the destination color, component by component.

destinationAlpha → const BlendFactor

Multiplies the input by the destination alpha.

oneMinusDestinationAlpha → const BlendFactor

Multiplies the input by one minus the destination alpha.

sourceAlphaSaturated → const BlendFactor

Multiplies the input by min(sourceAlpha, 1 - destinationAlpha).

blendColor → const BlendFactor

Multiplies the input by the constant blend color, component by component.

oneMinusBlendColor → const BlendFactor

Multiplies the input by one minus the constant blend color, component by component.

blendAlpha → const BlendFactor

Multiplies the input by the alpha of the constant blend color.

oneMinusBlendAlpha → const BlendFactor

Multiplies the input by one minus the alpha of the constant blend color.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<BlendFactor>
A constant List of the values in this enum, in order of their declaration.