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

Learning About More Advanced Techniques

Now that we’ve made it this far, let’s take some time to go over a few of the more advanced ways of rendering things in OpenGL.

Multitexturing

Back in Chapter 7, Adding Detail with Textures, we learned that we can easily apply a texture by specifying a set of texture coordinates and by using a texture unit to pass in the actual texture. OpenGL ES 2.0 actually provides support for multiple texture units, with most GPUs supporting at least two of them. This can be used to blend between two textures to apply various effects. In the sample project, we use multitexturing to draw the terrain with a blend between a grassy texture at low elevations and a stony texture at higher elevations.

Anisotropic Filtering ...

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