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 - Cubemap Refraction 2

1/19/2014

0 Comments

 
A little update on the last one. This one includes chromatic aberration (rainbow lensing) and all the fancy reflection controls from before. I'm not sure if the contrast adjustments make sense in this case. They work well on opaque reflections, but transparent reflections only really need a brightness boost in my opinion. I'll leave that up to you though.

The biggest change though is that it also has a diffuse term again, so you can add stains and stuff to the glass. The other glass was looking a bit clean for my taste. Overall opacity is still set with a slider though - the diffuse alpha only covers its coverage of the glass. Also, the diffuse is unlit, since lighting it would produce incorrect shadows.So instead I make the specular map do all the work. This may seem odd, but it produces the best look I've found so far.
Picture

Maya CGFX File:

phongnormalrefractive2.cgfx
File Size: 9 kb
File Type: cgfx
Download File

Unity SHADER File:

phongnormalrefractive2.shader
File Size: 11 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.