The fog tutorial program (shown at right) demonstrates how to use depth cueing (or fog) in OpenGL. It includes command panels that allow dynamic update of the parameters for linear, exponential and exponential2 fog functions. The fog color can also be dynamically changed. The lightposition tutorial program (shown at left) demonstrates how lighting position is effected by the viewing transformation
{{#tags}}- {{label}}
{{/tags}}