
20.14 Volumetric Fog 947
(a) (b)
Figure 20.28 Two screen captures from the ShadowMaps sample.
copied to another texture object, and then sent back to video memory. Render-
to-texture is becoming more common, but older hardware and drivers might not
support this.
The sample application to illustrate this concept is
ShadowMaps. Figure 20.28
shows two screen captures. The light is represented by the yellow globe. The larger
sphere and the torus have material colors and are lit but also allow a projected tex-
ture to be blended with their colors. The ground plane has a base texture (stone) and
accepts the projected texture and the shadow map. Figure 20.28 ...