SoDirectVizShaderoptions Property |
These strings specify parameters to the shader.
Namespace: OIV.Inventor.DirectViznodes
The syntax is: <parameter type> <parameter name> <parameter value>
Allowed types are:
1i | One integer |
2i | Two integers |
3i | Three integers |
1f | One float |
2f | Two floats |
3f | Three floats |
color | Same as 3f |
bool | Same as 1i |
texture | File path |
Example:
options [ "bool isVisible true" , "1i upDirection 1" , "3f intensity 0.65 0.5899 0.5899 "]
Any trailing part of the string that does not correspond to a parameter is ignored.
When specifying a shader, it may not be necessary to specify values for all available parameters. If a parameter is not specified by the user, the default value will be used. See version 6.1 of the Open Inventor by FEI User's Guide for more information.