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:

SEE ALSO

SoShaderObject, SoShaderProgram, SoShaderParameter, SoVertexShader, SoFragmentShader

SCREENSHOT:


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