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 by FEI reference manual, generated on 2 Sep 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/