Texture combiner node. More...
#include <Inventor/nodes/SoTextureCombiner.h>
The Texture Combine Environment Mode is a texture environment function that provides a wide range of programmable combiner functions using the incoming fragment color, texture source color, texture constant color, and the result of the previous texture environment stage as possible parameters. Texture Dot3 Environment offers new combiner function to Texture Combine Environment Mode. Texture Crossbar Environment Mode extends the Texture Combine Environment Mode by allowing use of the texture color from different texture units as sources to the texture combine function.
combineRGB | MODULATE |
combineAlpha | MODULATE |
source0RGB | TEXTURE |
source1RGB | PREVIOUS |
source2RGB | CONSTANT |
source0Alpha | TEXTURE |
source1Alpha | PREVIOUS |
source2Alpha | CONSTANT |
operand0RGB | SRC_COLOR |
operand1RGB | SRC_COLOR |
operand2RGB | SRC_ALPHA |
operand0Alpha | SRC_ALPHA |
operand1Alpha | SRC_ALPHA |
operand2Alpha | SRC_ALPHA |
scaleRGB | 1.0 |
scaleAlpha | 1.0 |
constantColor | 0.0 0.0 0.0 0.0 |
SoComplexity, SoExtTexture2, SoMaterial, SoTexture, SoTexture2, SoTexture2Transform, SoTexture3, SoTextureCoordinate2, SoTextureCoordinateBinding, SoTextureCoordinateFunction, SoTextureCubeMap, SoTextureUnit
Texture Combiner Functions.
Specifies the input mapping for the RGB and alpha portions of operand n.
See OpenGL documentation for details.
Source Parameter enumeration values.
CONSTANT |
Texture environment constant color.
|
PRIMARY_COLOR |
Primary color of the incoming fragment. |
PREVIOUS |
Result of previous texture combiner.
|
TEXTURE |
Texture color of the current texture unit. |
TEXTURE0 |
Texture color of texture unit 0.
|
TEXTURE1 |
Texture color of texture unit 1.
|
TEXTURE2 |
Texture color of texture unit 2.
|
TEXTURE3 |
Texture color of texture unit 3.
|
TEXTURE4 |
Texture color of texture unit 4.
|
TEXTURE5 |
Texture color of texture unit 5.
|
TEXTURE6 |
Texture color of texture unit 6.
|
TEXTURE7 |
Texture color of texture unit 7.
|
SoTextureCombiner::SoTextureCombiner | ( | ) |
Constructor.
static SoType SoTextureCombiner::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoNode.
virtual SoType SoTextureCombiner::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from SoNode.
Specifies the texture combiner function to apply on the source<n>Alpha transformed by the operand<n>Alpha.
Use enum CombineFunction. Default is MODULATE.
Specifies the texture combiner function to apply on the source<n>RGB transformed by the operand<n>RGB.
Use enum CombineFunction. Default is MODULATE.
Specifies a constant color.
Used when SourceParameter enum is CONSTANT.
Specifies an operand to be applied on the source0Alpha before applying the combiner.
Use enum OperandRGBA but only the two last values: SRC_ALPHA or ONE_MINUS_SRC_ALPHA. Default is SRC_ALPHA.
Specifies an operand to be applied on the source0RGB before applying the combiner.
Use enum OperandRGBA. Default is SRC_COLOR.
Specifies an operand to be applied on the source1Alpha before applying the combiner.
Use enum OperandRGBA but only the two last values: SRC_ALPHA or ONE_MINUS_SRC_ALPHA. Default is SRC_ALPHA.
Specifies an operand to be applied on the source1RGB before applying the combiner.
Use enum OperandRGBA. Default is SRC_COLOR.
Specifies an operand to be applied on the source2Alpha before applying the combiner.
Use enum OperandRGBA but only the two last values: SRC_ALPHA or ONE_MINUS_SRC_ALPHA. Default is SRC_ALPHA.
Specifies an operand to be applied on the source2RGB before applying the combiner.
Use enum OperandRGBA. Default is SRC_ALPHA.
Specifies the alpha scale for the entire texture operation and may be 1.0, 2.0, or 4.0.
Specifies the RGB scale for the entire texture operation and may be 1.0, 2.0, or 4.0.
Specifies one of the three sources for the alpha components.
Use enum SourceParameter. Default is TEXTURE.
Specifies one of the three sources for the RGB components.
Use enum SourceParameter. Default is TEXTURE.
Specifies one of the three sources for the alpha components.
Use enum SourceParameter. Default is PREVIOUS .
Specifies one of the three sources for the RGB components.
Use enum SourceParameter. Default is PREVIOUS .
Specifies one of the three sources for the alpha components.
Use enum SourceParameter. Default is CONSTANT.
Specifies one of the three sources for the RGB components.
Use enum SourceParameter. Default is CONSTANT.