SoShaderObjectsourceProgram Property |
Contains the shader object's source program, specified by a filename (OIV.Inventor.Nodes.SoShaderObject.sourceType set to OIV.Inventor.Nodes.SoShaderObject.SourceTypes.FILENAME) or by the string containing the program (OIV.Inventor.Nodes.SoShaderObject.sourceType set to OIV.Inventor.Nodes.SoShaderObject.SourceTypes.ARB_PROGRAM, OIV.Inventor.Nodes.SoShaderObject.SourceTypes.CG_PROGRAM, or OIV.Inventor.Nodes.SoShaderObject.SourceTypes.GLSL_PROGRAM).
Namespace: OIV.Inventor.Nodes
If the filename is not an absolute path name, the list of directories maintained by OIV.Inventor.SoInput is searched. If the source program is not found in any of those directories, then the file is searched for relative to the directory from which the OIV.Inventor.Nodes.SoShaderObject node was read.
NOTE: The source type (OIV.Inventor.Nodes.SoShaderObject.sourceType) must be specified before the source program is specified.