Let's start this recipe by creating a shader and its material and importing a special texture, as follows:
- Start by creating a new shader; in this example, we will duplicate the one made in the previous recipe by selecting it in the Project tab and then hit Ctrl + D. We will change the name of this new shader to ToonShader.
- Create a new material for the shader (ToonShaderMat) and attach it to a 3D model. Toon shading works best on curved surfaces.
- This recipe requires an additional texture called a ramp map, which will be used to dictate when we want to use certain colors depending on the shade received:
- This book has an example texture in ...