Ramp shading is another option that compares well with basic Cell shading. By using a ramp to decide the color and intensity of the light, we can gain more control of the light-dark transition. Here is Cell Shading on the Left and Ramp Shading on the ramp with an equivalent ramp texture. The main benefit we can immediately notice is the softening of transitions. Cell shading can introduce aliasing and ramp shading smooths this somewhat.
Since the lighting is now governed by a ramp, we can easily control the brightness and falloff of the lighting. It also allows us to easily create various effects as seen below:
Basic Ramp
 + Gaussian Blur
+Blurred Mid tones and Gaussian Blur

Maya CGFX File:

rampshading.cgfx
File Size: 7 kb
File Type: cgfx

Download File


Unity SHADER File:

rampshading.shader
File Size: 10 kb
File Type: shader

Download File


Leave a Reply

Your email address will not be published. Required fields are marked *