Exercises

Try loading in a different image, and use an additional texture unit to blend this image with the current one. You can try adding or multiplying the values together when you assign them to gl_FragColor in your fragment shader.

Once you’ve completed these exercises, we’ll learn how to improve the look of our mallets in 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.