Lighting Model

The OpenGL lighting model distinguishes between four types of light, one of which is internal:

The remaining three light types are external: and between the characteristics of the light source and the material properties of the objects being illuminated.

The color at a vertex is computed as follows:

where


On to the OpenGL lighting functions...
Back to shading...
Back to the 13.016 overview...