In this last step, we will add the last three properties,
_Ramp to get the toon shader result. The
_RimPower properties basically control the back lighting effect of our character. The
_Ramp properties will be the ramp textures that are used to calculate the lighting effect based on the angle between the light direction and surface normal of the object. We will also get the Half Lambert lighting effect to make a smooth lighting effect.
This is the last section, after which you will be able to see the result of your custom shader:
MyShaderfile, go to the
Propertiessection, and add the highlighted script ...