next up previous contents index
Next: 2.13.5 Color Index Lighting Up: 2.13 Colors and Coloring Previous: 2.13.3 ColorMaterial

2.13.4 Lighting State

The state required for lighting consists of all of the lighting parameters (front and back material parameters, lighting model parameters, and at least 8 sets of light parameters), a bit indicating whether a back color distinct from the front color should be computed, at least 8 bits to indicate which lights are enabled, a five-valued variable indicating the current ColorMaterial  mode, a bit indicating whether or not COLOR_MATERIAL is enabled, and a single bit to indicate whether lighting is enabled or disabled. In the initial state, all lighting parameters have their default values. Back color evaluation does not take place, ColorMaterial  is FRONT_AND_BACK and AMBIENT_AND_DIFFUSE, and both lighting and COLOR_MATERIAL are disabled.

David Blythe
Sat Mar 29 02:23:21 PST 1997