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

2.13.6 Clamping or Masking

 

After lighting (whether enabled or not), RGBA colors are clamped to the range . For a color index, the index is first converted to fixed-point with an unspecified number of bits to the right of the binary point; the nearest fixed-point value is selected. Then, the bits to the right of the binary point are left alone while the integer portion is masked (bitwise ANDed) with , where n is the number of bits in a color in the color index buffer (buffers are discussed in chapter 4).



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