Click or drag to resize
SoShaderObjectsourceProgram Property

Contains the shader object's source program, specified by a filename (sourceType set to FILENAME) or by the string containing the program (sourceType set to ARB_PROGRAM, CG_PROGRAM, or GLSL_PROGRAM).

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
Syntax
public SoSFFilePathString sourceProgram { get; }

Property Value

Type: SoSFFilePathString
Remarks

If the filename is not an absolute path name, the list of directories maintained by 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 SoShaderObject node was read.

NOTE: The source type (sourceType) must be specified before the source program is specified.

See Also