Open topic with navigation
<node3d>.alphaFunc
Specify the alpha test function
<node3d>.alphaFunc( |
|
func |
ref |
node = '' |
op = viz.OP_DEFAULT |
) |
|
func
Can be one of the following alpha comparison function constants:
viz.GL_NEVER
viz.GL_LESS
viz.GL_EQUAL
viz.GL_LEQUAL
viz.GL_GREATER
viz.GL_NOTEQUAL
viz.GL_GEQUAL
viz.GL_ALWAYS
ref
Specifies the reference value that incoming alpha values are compared to. This value is clamped to the range 0-1.
node = ''
Name of sub-node 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:
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. |
Remarks
For more information, see the OpenGL documentation for
glAlphaFunc.
Return Value
None
See also