OpenGL Distilled
A.3. Fog
The fog feature, available since OpenGL version 1.0, blends a fragment color with a fog color based on the fragment distance from the eye. In versions 1.4 and later, applications can explicitly set fog-coordinate values to further control blending between the fragment and fog colors. Applications commonly use the fog feature for depth cueing and atmospheric effects. To use the fog feature:
For more information on fog, such as changing the fog equation and setting fog coordinates per vertex, see Chapter 6, "Blending, Antialiasing, Fog, and Polygon Offset," of OpenGL® Programming Guide and "glFog" in OpenGL® Reference Manual. |
Категории