24#ifndef _SO_TEXTURE_COMBINER_
25#define _SO_TEXTURE_COMBINER_
115 ADD = SbEnums::TEX_MODEL_ADD,
331 virtual void doAction(
SoAction *action);
339 static void initClass();
340 static void exitClass();
#define SO_NODE_HEADER(className)
Abstract base class for all actions.
Performs a generic traversal of a scene graph or path.
Renders a scene graph using Open Inventor's Render Engine.
Abstract base class for all database nodes.
Field containing an enumerated value.
Field containing a floating-point value.
Field containing a homogeneous three-dimensional vector.
<a href="IconLegend.html"><img src="extTGS.gif" alt="VSG extension" border="0"></a> Texture combiner...
SoSFFloat scaleRGB
Specifies the RGB scale for the entire texture operation and may be 1.0, 2.0, or 4....
OperandRGBA
Specifies the input mapping for the RGB and alpha portions of operand n.
@ SRC_COLOR
(Cred, Cgreen, Cblue).
@ ONE_MINUS_SRC_COLOR
(1 - Cred, 1 - Cgreen, 1 - Cblue).
@ ONE_MINUS_SRC_ALPHA
(1 - Calpha, 1 - Calpha, 1 - Calpha).
@ SRC_ALPHA
(Calpha, Calpha, Calpha).
SoSFEnum operand1RGB
Specifies an operand to be applied on the source1RGB before applying the combiner.
SoSFEnum operand2RGB
Specifies an operand to be applied on the source2RGB before applying the combiner.
SoSFEnum combineRGB
Specifies the texture combiner function to apply on the source<n>RGB transformed by the operand<n>RGB...
SoSFEnum source2Alpha
Specifies one of the three sources for the alpha components.
SoSFEnum operand2Alpha
Specifies an operand to be applied on the source2Alpha before applying the combiner.
SoSFEnum source2RGB
Specifies one of the three sources for the RGB components.
SoSFEnum combineAlpha
Specifies the texture combiner function to apply on the source<n>Alpha transformed by the operand<n>A...
SoSFEnum operand1Alpha
Specifies an operand to be applied on the source1Alpha before applying the combiner.
SoSFVec4f constantColor
Specifies a constant color.
SoSFFloat scaleAlpha
Specifies the alpha scale for the entire texture operation and may be 1.0, 2.0, or 4....
SoSFEnum source0Alpha
Specifies one of the three sources for the alpha components.
SoSFEnum source1RGB
Specifies one of the three sources for the RGB components.
SoSFEnum operand0RGB
Specifies an operand to be applied on the source0RGB before applying the combiner.
SoTextureCombiner()
Constructor.
SoSFEnum source0RGB
Specifies one of the three sources for the RGB components.
SoSFEnum operand0Alpha
Specifies an operand to be applied on the source0Alpha before applying the combiner.
SourceParameter
Source Parameter enumeration values.
@ TEXTURE3
Texture color of texture unit 3.
@ PRIMARY_COLOR
Primary color of the incoming fragment.
@ TEXTURE5
Texture color of texture unit 5.
@ TEXTURE1
Texture color of texture unit 1.
@ PREVIOUS
Result of previous texture combiner.
@ TEXTURE
Texture color of the current texture unit.
@ TEXTURE2
Texture color of texture unit 2.
@ TEXTURE4
Texture color of texture unit 4.
@ TEXTURE0
Texture color of texture unit 0.
@ TEXTURE6
Texture color of texture unit 6.
@ CONSTANT
Texture environment constant color.
@ TEXTURE7
Texture color of texture unit 7.
SoSFEnum source1Alpha
Specifies one of the three sources for the alpha components.
CombineFunction
Texture Combiner Functions.
@ INTERPOLATE
Output fragment is source0 * source2 + source1 * (1 - source2)
@ SUBTRACT
Output fragment is source0 - source1.
@ ADD_SIGNED
Output fragment is source0 + source1 - 0.5.
@ MODULATE
Output fragment is source0 * source1.
@ DOT3_RGBA
Output fragment R = G = B = A = 4*((source0r - 0.5) * (source1r -0.5) + (source0g - 0....
@ ADD
Output fragment is source0 + source1.
@ DOT3_RGB
Output fragment R = G = B = 4*((source0r - 0.5) * (source1r -0.5) + (source0g - 0....
@ REPLACE
Output fragment is source0.