Game Development Reference
In-Depth Information
Shader programming - Half Lambert,
Rim Light, and Toon Ramp
In this last step, we will add the last three properties, _RimColor , _RimPower , and
_Ramp to get the toon shader result. The _RimColor and _RimPower properties basic-
ally 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.
Search WWH ::




Custom Search