The chapter06/scenedeferred.cpp file in the example code The Rendering to a texture recipe in Chapter 5, Using Textures