Set the texture combine parameters
| <node3d>.texCombine( | |
| tc | |
| node = '' | |
| unit = 0 | |
| op = viz.OP_DEFAULT |
)
tc
A viz.TextureCombine object. See remarks for more details.
node = ''
Name of sub-node to apply changes to
unit = 0
The texture unit to apply changes to
op = viz.OP_DEFAULT
Can be viz.OP_DEFAULT to use the nodes default op mode or a combination of the following values:
Op modes |
|
viz.OP_TRAVERSE |
When performing an operation on a node, traverse the entire subgraph and process all subnodes as well. This is the default value. |
viz.OP_OVERRIDE |
When applying attributes, have them override attributes of subnodes. |
viz.OP_ROOT |
When performing an operation on the node, start at the root transform of the node, instead of the model. Processing the root will include all child Vizard nodes. |
This command controls how texture units are combined together when using the fixed function pipeline. For more information, see the OpenGL documentation for the GL_ARB_texture_env_combine extension.
The viz.TextureCombine object contains the following attributes for controlling how textures are combined:
Attribute |
Description |
combine_rgb |
Defaults to viz.GL_MODULATE |
combine_alpha |
Defaults to viz.GL_MODULATE |
source0_rgb |
Defaults to viz.GL_TEXTURE |
source1_rgb |
Defaults to viz.GL_PREVIOUS |
source2_rgb |
Defaults to viz.GL_CONSTANT |
source0_alpha |
Defaults to viz.GL_TEXTURE |
source1_alpha |
Defaults to viz.GL_PREVIOUS |
source2_alpha |
Defaults to viz.GL_CONSTANT |
operand0_rgb |
Defaults to viz.GL_SRC_COLOR |
operand1_rgb |
Defaults to viz.GL_SRC_COLOR |
operand2_rgb |
Defaults to viz.GL_SRC_ALPHA |
operand0_alpha |
Defaults to viz.GL_SRC_ALPHA |
operand1_alpha |
Defaults to viz.GL_SRC_ALPHA |
operand2_alpha |
Defaults to viz.GL_SRC_ALPHA |
scale_rgb |
Defaults to 1.0 |
scale_alpha |
Defaults to 1.0 |
constant_color |
Defaults to [0,0,0,0] |
None