Chapter 5. Color, Materials, and Lighting: The Basics
By Richard S. Wright, Jr.
WHAT YOU'LL LEARN IN THIS CHAPTER:
Functions You'll Use
Specify a color in terms of RGB components
Set the shading model
Set the lighting model
Set lighting parameters
Set material reflective properties
Use surface normals
This is the chapter where 3D graphics really start to look interesting (unless you really dig wireframe models!), and it only gets better from here. You've been learning OpenGL from the ground up—how to put programs together and then how to assemble objects from primitives and manipulate them in 3D space. Until now, we've been laying the foundation, and you still can't tell what ...