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

by Richard S. Wright Jr.

WHAT YOU’LL LEARN IN THIS CHAPTER:

Image

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.