Chapter 9. Optimizing Shaders for Mobile

In this chapter, we will take a closer look at specialized shaders for mobile games. Typically, mobile devices do not have the performance capabilities of consoles and PCs, they also do not require the same level of texture detail, but by writing a few custom shaders, we can still get the game levels looking great.

In this chapter, we will cover the following topics:

  • Outputting builds for iOS and Android platforms
  • Looking at game performance in the Profiler
  • Writing a simple mobile shader
  • Creating an optimized character shader

Let's take a look at the scene and start with our next shader.

Starting the scene

The scene that we will be working with in this chapter is located in the PACKT_Scenes file in the project: ...

Get Mastering Unity Shaders and Effects now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.