Contents / Previous / Next


Dithering

[IMAGE] Some graphics hardware uses dithering to increase the number of displayable colors at the expense of spatial resolution. Dithering is the technique of using combinations of some colors to create the effect of other colors.

The figure illustrates some simple dithering of black and white pixels to make shades of gray. From left to right, the 4 by 4 patterns at the top represent dithering patterns for 50 percent, 19 percent, and 69 percent gray.

With about 8 bits each of R, G, and B, you can get a fairly high-quality image without dithering.

You enable or disable dithering by passing GL_DITHER to glEnable() or glDisable().