Chapter 7. Mobile Shader Adjustment
In the next two chapters, we are going to take a look at making the shaders that we write performance-friendly for different platforms. We won't be talking about any one platform specifically, but we are going to break down the elements of shaders we can adjust to make them more optimized for mobiles and efficient on any platform in general. These techniques range from understanding what Unity offers in terms of built-in variables that reduce the overhead of the shaders memory to learning about ways in which we can make our own shader code more efficient. This chapter will cover the following recipes:
- What is a cheap shader
- Profiling your shaders
- Modifying our shaders for mobile