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: 2023.1.3.0 (2023.1.3)
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