OpenGL Distilled
6.4. More Information
Chapter 9, "Texture Mapping," of OpenGL® Programming Guide is a thorough discussion of texture mapping within OpenGL. In OpenGL® Reference Manual, see "glTexEnv," "glTexGen," "glTexImage2D," and "glTexParameter." Each function description in OpenGL® Reference Manual concludes with a list of related functions; see these as well. Chapter 8, "Mapping Techniques," of 3D Computer Graphics provides general discussion of the many application areas for texture mapping, including bump mapping, environment mapping, and billboards. Also, Chapter 9 in that book, "Geometric Shadows," discusses solutions to the special problem of shadow rendering, including solutions that don't use texture mapping. As an advanced text, much of the book GPU Gems (Fernando 2004) concerns the use of textures within vertex and fragment shaders to create various effects. Part II of GPU Gems, "Lighting and Shadows," presents shader techniques for rendering shadows. For more OpenGLspecific information along the same lines as GPU Gems, see OpenGL® Shading Language. The book's Web site contains several examples that employ texture mapping, including full source for all example programs mentioned in this chapter. Also see the OpenGL Web site at http://www.opengl.org for texture mapping examples and programming resources. |
Категории