Set the texture combine parameters
<node3d>.texCombine( | |
tc | |
node = '' | |
unit = 0 | |
op = viz.OP_DEFAULT | |
) |
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. |
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] |