O'Reilly logo

OpenGL ES 2 for Android by Kevin Brothaler

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 13Lighting Up the World

The simulation of light has been a major research topic in the world of computer graphics, and we can see the impacts of this research not only in the steady visual improvement of games over time but also in areas like computer-generated imagery (CGI) in movies and TV shows.

The use of lighting algorithms can make a big difference in the way a scene looks. Day can pass into night, areas can fall into shadow, and a mountain can reveal peaks, valleys, and crevices; even a 2D scene can take advantage of the properties of light for things like visual depth, explosions, and other special effects. In this chapter, we’re going to learn how to use some simple lighting algorithms to add some contrast to our mountains, ...

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