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 one of the single biggest topics 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.

The Story of Light and Color

Without light, the world would be a ...

Get Pro OpenGL ES for Android 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.