Exercises

As your first exercise, add a small cube to the scene and apply the cube map to this cube. For a more advanced exercise, add movement to the camera (you could use the volume keys to move forward and backward, for example) to move the scene without also moving the skybox.

When you’re ready, let’s move on to the next chapter.

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.