Open Inventor Release 2023.2.3
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Per pixel lighting using shaders

VSG extension This example computes per-pixel lighting (only the diffuse contribution is computed) on a sub-scene graph.

Per-pixel lighting gives better lighting quality than per-vertex lighting.

A dialog window allows you to select which shading language to use when the example is executed.

FILES:

    • Inventor/Shaders/PixelLighting/PixelLighting.cxx

SEE ALSO

SoShaderObject SoShaderProgram SoShaderParameter SoVertexShader SoFragmentShader

SCREENSHOT: