Chapter 4
Turning On the Lights
You must be strong now. You must never give up. And when people [or code] make you cry and you are afraid of the dark, don't forget the light is always there.
—Author Unknown
Light is the first of painters. There is no object so foul that intense light will not make it beautiful.
—Ralph Waldo Emerson
Everything's shiny, Cap'n. Not to fret.
—Kaylee Frye, Firefly
This chapter will cover perhaps the single biggest topic for OpenGL ES: the process of illuminating, shading, and coloring the virtual landscape. We touched on color in the previous chapter, but because it is so integral to both lighting and shading, we will cover it more in depth here. For those of you reading the quaint paper version of this book, ...
Get Pro OpenGL ES for iOS 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.