Click or drag to resize
SoShaderProgramshadowShader Property

Only used when an SoShadowGroup is active.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 9.9.13.0 (9.9.13.0)
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_FragData[0], 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: SoShadowGroup

    NOTE: field available since Open Inventor 8.1

See Also