SoShaderObjectsourceType Property |
Specifies the shader object's source type.
Namespace: OIV.Inventor.Nodes
The type of source can be either a filename containing the program (OIV.Inventor.Nodes.SoShaderObject.SourceTypes.FILENAME), or a string containing the source program (OIV.Inventor.Nodes.SoShaderObject.SourceTypes.GLSL_PROGRAM). Use enum OIV.Inventor.Nodes.SoShaderObject.SourceTypes. Default is FILENAME.
NOTE: The source type must be specified before the source program (OIV.Inventor.Nodes.SoShaderObject.sourceProgram) is specified.