This chapter introduces an advanced lighting approach commonly called bump mapping. The earlier presentation of lighting in Chapter 5 discussed per-vertex and per-fragment light computations. 'Combining Bump Mapping with Other Effects' combines bump mapping techniques with other textures, such as decals and gloss maps, for more sophisticated shading.'Bump Mapping Textured Polygonal Meshes' shows how to apply bump mapping to textured polygonal models.'Bump Mapping a Torus' shows how to bump map curved surfaces that have mathematical representations, such as the torus.'Bump Mapping a Brick Floor' explains how to make bump mapping consistent for two planes.'Bump Mapping a Brick Wall' introduces bump mapping of a single rectangle.This chapter has the following five sections: This chapter enhances the per-fragment lighting discussion in Chapter 5 with texture-encoded normals to create an effect known as bump mapping. Please visit our Recent Documents page to see all the latest whitepapers and conference presentations that can help you with your projects.Ĭhapter 8. You can purchase a beautifully printed version of this book, and others in the series, at a 30% discount courtesy of InformIT and Addison-Wesley. The Cg Tutorial The Cg Tutorial is now available, right here, online.