BlendMode
Overview
BlendMode controls how pixels of an objects are drawn. Pixels can be drawn using a function that blends the incoming (source) RGBA values with the RGBA values that are already in the frame buffer (the destination values). BlendMode is an X3DAppearanceChildNode node that handles blend operations.
The BlendMode node belongs to the X_ITE component and its default container field is blendMode. It is available in X_ITE.
Info: Please note that this node is still experimental, i.e. the functionality of this node may change in future versions of X_ITE.
Hierarchy
1
2
3
4
+ X3DNode
+ X3DChildNode
+ X3DAppearanceChildNode
+ BlendMode
Fields
SFNode [in, out] metadata NULL [X3DMetadataObject]
Information about this node can be contained in a MetadataBoolean, MetadataDouble, MetadataFloat, MetadataInteger, MetadataString or MetadataSet node.
Hint
SFColorRGBA [in, out] blendColor 0 0 0 0 [0,1]
The blendColor may be used to calculate the source and destination blending factors.
SFString [in, out] sourceColorFactor “SRC_ALPHA”
Specifies how the red, green, and blue source blending factors are computed.
Source and destination parameters must be one of the following symbolic constants:
- ZERO
- ONE
- SRC_COLOR
- ONE_MINUS_SRC_COLOR
- DST_COLOR
- ONE_MINUS_DST_COLOR
- SRC_ALPHA
- ONE_MINUS_SRC_ALPHA
- DST_ALPHA
- ONE_MINUS_DST_ALPHA
- CONSTANT_COLOR
- ONE_MINUS_CONSTANT_COLOR
- CONSTANT_ALPHA
- ONE_MINUS_CONSTANT_ALPHA
SFString [in, out] sourceAlphaFactor “ONE”
Specifies how the alpha source blending factors are computed.
SFString [in, out] destinationColorFactor “ONE_MINUS_SRC_ALPHA”
Specifies how the red, green, and blue destination blending factors are computed.
SFString [in, out] destinationAlphaFactor “ONE_MINUS_SRC_ALPHA”
Specifies how the alpha destination blending factors are computed.
SFString [in, out] colorEquation “FUNC_ADD”
Specifies the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined. It must be:
- FUNC_ADD
- FUNC_SUBTRACT
- FUNC_REVERSE_SUBTRACT
SFString [in, out] alphaEquation “FUNC_ADD”
Specifies the alpha blend equation, how the alpha component of the source and destination colors are combined. It must be:
- FUNC_ADD
- FUNC_SUBTRACT
- FUNC_REVERSE_SUBTRACT