
CHAPTER NINE: Shaders and Rendering Algorithms 251
glossy or diffuse light transmission. Several popular shaders, including cook-
torrance, are programmed based on a microfacet model of surfaces.
Figure 9.4 shows the difference that microscopic roughness can make. On a
rough surface (left), parallel rays of light enter and are each refl ected to dif-
ferent angles, producing diffuse refl ection. On a smoother surface (middle)
the rays are scattered less, and retain some of their directionality, producing
a glossy refl ection. A perfectly smooth surface (right) allows all of the rays to
refl ect in parallel, producing a perfectly specular refl ection. ...