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

Get OpenGL ES 2 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.