Click or drag to resize
SoShaderProgramshadowShader Property

Only used when an OIV.Inventor.Nodes.SoShadowGroup is active.

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

Property Value

Type: SoSFBool
Remarks

Default is false. If set to false, a default shader will be used during the shadowmap generation pass. If true, the shader will be used as is and must handle the shadowmap pass correctly:

  • If the uniform OivShadowPass is true, call OivGenerateShadowMap() and output nothing into gl_FragColor, but discard fragments if needed.

  • If the uniform OivShadowPass is false, follow the normal render path If the shader doesn't modify the depth (with a discard or an alpha test), Open Inventor will handle the shadowmap generation pass automatically. Default is false See also: OIV.Inventor.Nodes.SoShadowGroup

    Note Note

    Field available since Open Inventor 8.1

See Also