O'Reilly logo

Pro OpenGL ES for iOS by Mike Smithwick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required