9.5.2

Table Of Contents
880 CHAPTER 18
THE SHADERS 881
Fog, for example, has no surface normals. The renderer will only take into account the shadows cast
by the light sources (when volumetric fog is used).
What the ChanLum shader does is gather dispersed light across a given surface. In order to calculate
this effect quickly, the shader offsets the sampling point (S) with an offset spacing (O) along the
surface normal point (P). The value of (O) denes how thick the virtual “uff” layer will be.