Chapter 4. Projection and Shadowing Effects
PrelightingRenderer is a great way to render a large number of lights in a relatively efficient manner and it also makes a great framework for implementing some other fairly complicated effects. In this chapter, we will look at two related effects—projective texturing and shadow mapping. We saw some aspects of projective texturing in the last chapter, but in this chapter we will learn how to project an image across the scene as though it was projected by a real world projector.
Next, we will look at two implementations of shadow mapping. Shadow mapping is similar to projective texturing—in that we use the same process to project a depth texture across the scene, which we then use to generate shadows. ...