O'Reilly logo

Learn OpenGL ES: For Mobile Game and Graphics Development by Prateek Mehta

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    5

Texturing and Shading

In this chapter, you will learn about two common ways to enhance the look of our ES 2.0 applications — texturing and shading. First, I will talk about using single textures and then I will show you how you can combine textures with colors. After this, you will learn using multiple textures with rendered objects. Finally, I will discuss lighting and shading effects in ES 2.0, which are achieved using our own logic for the interaction between surface and light sources.

Vertex Buffer Objects

The per-vertex data, specified (for rendering objects) using arrays, is stored in the main memory; however, when a call to glDraw* (glDrawArrays or glDrawElements) is made, this data must be copied from the main memory to ...

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