Atmosphere shader

An atmosphere shader simulates atmospheric attenuation to create an effect of fog, clouds, or haze. The TAtmosphereShader abstract base class lets you create atmospheric effects.

Figure 219 shows that TDepthCueingShader is available as a default atmosphere shader. TDepthCueingShader adds depth information into the rendering process. It modifies the color produced in the shading computation according to the distance between the surface point and the viewer. The new color is computed as the weighted average between the color computed from shading computation and the depthcue color, based on a scale factor.



[Contents] [Previous] [Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.

Generated with WebMaker