In this second installment of our OpenGL ES 2.0 Shader tutorials for Android we will look into using textures in our shaders. In our previous tutorial we have explained the whole shader system in OpenGL ES 2.0 and we have made an app that renders a colored triangle. This is nice but if we want to make a game more appealing we should use images instead of only colored objects. In our Real 2D tutorials we have already explained and given code to render textured quads on screen representing an game object. This tutorial will explain just a bit more of what we can do with shaders regarding textures and colors.
OpenGL ES 2.0 requires us to use shaders, which is very nice because it lets us do a lot of nice things. This series of tutorials will go into the subject of shaders. This installment will cover the basic setup of a shader and explains a bit what’s what.