BlendMode
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 a X3DAppearanceChild node that handles blend operations.
The BlendMode node belongs to the X_ITE component and its container field is blendMode. It is available in Titania and X_ITE.
Fields
SFNode [in, out] metadata NULL [X3DMetadataObject]
Metadata are not part of the X3D world and not interpreted by the X3D browser, but they can be accessed via the ECMAScript interface.
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_MINUS_SRC_ALPHA"
Specifies how the alpha source blending factors are computed.
SFString [in,out] destinationColorFactor "ONE"
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