Click or drag to resize
SoShaderObjectsourceType Property

Specifies the shader object's source type.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public SoSFEnum<SoShaderObjectSourceTypes> sourceType { get; }

Property Value

Type: SoSFEnumSoShaderObjectSourceTypes
Remarks

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.ARB_PROGRAM, OIV.Inventor.Nodes.SoShaderObject.SourceTypes.CG_PROGRAM, or OIV.Inventor.Nodes.SoShaderObject.SourceTypes.GLSL_PROGRAM). Use enum OIV.Inventor.Nodes.SoShaderObject.SourceTypes. Defaule is FILENAME.

NOTE: The source type must be specified before the source program (OIV.Inventor.Nodes.SoShaderObject.sourceProgram) is specified.

See Also