Shadowing with a shader altering depth

VSG extension This example shows how to apply depth modification in a shader during the shadowmap pass.

A sphere with a hole created in a fragment shader is lighted and shadowed.

FILES:

SEE ALSO

SoShaderObject, SoShaderProgram, SoShaderParameter, SoVertexShader, SoFragmentShader, SoShadowGroup

SCREENSHOT:


Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/