Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
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:

    • Inventor/Shaders/shadowShader/shadowShader.cxx
    • Inventor/Shaders/shadowShader/PixelLightingFrag.glsl
    • Inventor/Shaders/shadowShader/PixelLightingVtx.glsl

SEE ALSO

SoShaderObject SoShaderProgram SoShaderParameter SoVertexShader SoFragmentShader SoShadowGroup

SCREENSHOT: