Now that we have seen quite a broad set of techniques for making really optimized Shaders, let's take a look at writing a nice, high quality Shader targeted for a mobile device. It is actually quite easy to make a few adjustments to the Shaders we have written so that they run faster on a mobile device. This includes elements such as using the
halfasview lighting function variables. We can also reduce the amount of textures we need and even apply better compression for the textures we are using. By the end of this section, we will have a nicely optimized, normal-mapped Specular Shader for use in our mobile games.
Before we begin, let's get a fresh new scene made up and fill it up with ...