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- Schlick Specular

3/16/2014

0 Comments

 
This is a shader technique used for approximating specular highlights. Most phong derivatives use a specular power and the power function is one of the more expensive operations in shaders. That's why Christophe Schlick proposed a way to approximate this effect in his paper. He goes into a few other approximations that can be made which are honestly pretty slick, but I'm focusing on the specular here.
Picture
Here we have Schlick's specular on the left and phong on the right both with a "specular power" of 40. As you can see the highlight spreads out somewhat but the core follows essentially the same shape as with phong. Some might even find this preferable to phong, as perfectly sharp highlights can seem artificial. The cool thing is this technique could be applied to other things that use power as well, which could save you some instructions to spend elsewhere. For example, this should work equally well for a blinn shader.

Maya CGFX File:

schlickspecular.cgfx
File Size: 6 kb
File Type: cgfx
Download File

Unity SHADER File:

schlickspecular.shader
File Size: 9 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.