Chapter 5. Color, Materials, and Lighting: The Basics

by Richard S. Wright Jr.



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 the house is going to look like! To recoin a phrase, “Where’s the beef?”

To put it succinctly, the beef starts here. For most of the rest of this book, science ...

Get OpenGL SuperBible: Comprehensive Tutorial and Reference, Fourth Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.