Click or drag to resize
SoVolumeShaderforVolumeOnly Property

Set to true if the shader should be called for volume rendering (OIV.VolumeViz.Nodes.SoVolumeRender).

Namespace: OIV.VolumeViz.Nodes
Assembly: OIV.VolumeViz (in OIV.VolumeViz.dll) Version: 2024.1.1.0 (2024.1.1)
Syntax
public SoSFBool forVolumeOnly { get; }

Property Value

Type: SoSFBool
Remarks

Set to false if it should be called for other VolumeViz shapes (OIV.VolumeViz.Nodes.SoOrthoSlice, OIV.VolumeViz.Nodes.SoObliqueSlice, OIV.VolumeViz.Nodes.SoVolumeSkin, volume geometry, etc). Default is false.

true means that if the shader uses texture coordinates, they will be 3D texture coordinates. false means they will be 2D texture coordinates.

In some cases it may be possible to use the same shader source for both volume and non-volume rendering. However the application must still create two shader nodes, one with true and one with false, even if both nodes load the same shader source file. (This is necessary because the shader source must be compiled with different parameters for different cases.)

See Also