SoVolumeShaderSetFragmentShader Method (Int32, String, SoShaderObjectSourceTypes) |
Creates a fragment shader with the given filename and add it at the given pos.
Namespace: OIV.VolumeViz.NodesAssembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax public override SoFragmentShader SetFragmentShader(
int pos,
string filenameOrSource,
SoShaderObjectSourceTypes sourceType
)
Public Overrides Function SetFragmentShader (
pos As Integer,
filenameOrSource As String,
sourceType As SoShaderObjectSourceTypes
) As SoFragmentShader
public:
virtual SoFragmentShader^ SetFragmentShader(
int pos,
String^ filenameOrSource,
SoShaderObjectSourceTypes sourceType
) override
abstract SetFragmentShader :
pos : int *
filenameOrSource : string *
sourceType : SoShaderObjectSourceTypes -> SoFragmentShader
override SetFragmentShader :
pos : int *
filenameOrSource : string *
sourceType : SoShaderObjectSourceTypes -> SoFragmentShader
Parameters
- pos
- Type: SystemInt32
- filenameOrSource
- Type: SystemString
- sourceType
- Type: OIV.Inventor.NodesSoShaderObjectSourceTypes
Return Value
Type:
SoFragmentShaderRemarks Return value is the new fragment shader.
See Also