Artistic Experiments
  • Home
  • Reel
  • Shaders
    • Stylized Shaders
    • Lighting Techniques
    • Shader Effects
    • Cubemaps
    • Pixel Lit Shaders (Basic)
    • Vertex Lit Shaders (Basic)
    • Unlit Shaders (Basic)
  • Tools
  • WIP
  • Contact

CG Shaders - Ramp Shading

4/6/2014

0 Comments

 
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.
Picture
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:
Picture
Basic Ramp
Picture
 + Gaussian Blur
Picture
+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

0 Comments



Leave a Reply.

    CG Shaders

    Shaders I've built as i teach myself CG. Feel free to download and use for whatever. If you like them you can buy me a beer or something.

    Archives

    December 2014
    April 2014
    March 2014
    February 2014
    January 2014
    December 2013
    November 2013

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.