Silicon Graphics

[Prev] [TOC] [Next]



(-) OpenGL Programming Guide
(-) Chapter 6Lighting
(-) The Mathematics of Lighting

Putting It All Together

Using the definitions of terms described in the preceding paragraphs, the following represents the entire lighting calculation in RGBA mode.

vertex color = emissionmaterial +

ambientlight model * ambientmaterial +

[IMAGE]

[ ambientlight *ambientmaterial +

(max { 1 x n , 0 } ) * diffuselight * diffusematerial +

(max {s x n ,0} )shininess * specularlight * specularmaterial ] i


[Prev] [TOC] [Next]

OpenGL Programming Guide


Maintained by Maintainer: Send e-mail to .htm">name@address.