Represents blending configuration.
This class encapsulates all blending-related properties that control how a material's colors are combined with the colors already in the frame buffer.
Constructs a new blending configuration.
blending
The blending mode.
Default is NormalBlending.
Defines the blending destination factor.
This determines how the destination (existing) fragment color in the frame buffer is factored before being combined with the source (incoming) fragment color.
Default is OneMinusSrcAlphaFactor.
Defines the blending destination alpha factor.
When set, this allows separate control of the alpha channel's destination blending factor. If null, BlendMode#blendDst is used for the alpha channel as well.
Default is null.
Defines the blending equation.
This determines how the source and destination colors are combined.
Default is AddEquation.
Defines the blending equation of the alpha channel.
When set, this allows separate control of the alpha channel's blending equation. If null, BlendMode#blendEquation is used for the alpha channel as well.
Default is null.
Defines the blending source factor.
This determines how the source (incoming) fragment color is factored before being added to the destination (existing) fragment color in the frame buffer.
Default is SrcAlphaFactor.
Defines the blending source alpha factor.
When set, this allows separate control of the alpha channel's source blending factor. If null, BlendMode#blendSrc is used for the alpha channel as well.
Default is null.
Defines the blending type.
It must be set to CustomBlending if custom blending properties like BlendMode#blendSrc, BlendMode#blendDst or BlendMode#blendEquation should have any effect.
Default is NormalBlending.
Defines whether to premultiply the alpha (transparency) value.
If true, the RGB color of the texture or material is multiplied by its alpha value. This is useful for transparent textures/materials where the color data should already include the transparency information.
Default is false.
Returns a clone of this blending configuration.
Returns: A new Blending instance with the same properties.
Copies the blending properties from the given source to this instance.
source
The blending configuration to copy from.
Returns: A reference to this instance.