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 4Adding Color and Shade

In the real world, objects have varying color and shade. If we look at a wall inside of our home, we can observe that it’s painted a single color. At the same time, some parts of the wall will seem darker or brighter, depending on how these parts of the wall are oriented to the surrounding light. Our brains use these slight differences in shade as one of the main visual cues to help make sense of what we see; artists have been using these cues to fool our brains to no end since the beginning of time. In this chapter, we’re going to learn from the artists and use varying color and shade to make our table look less flat and more realistic.

In the previous chapter, it was quite a bit of work to get our air hockey ...

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