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 Reflection

1/14/2014

0 Comments

 
Here is a simple example of cubemap reflection, based on my emissive phong shader. I just chose that one because it looks nice and i was tired of bricks :)

I replaced the Fresnel color with the reflection and added a brightness multiplier for it. You could add the rim light back in but you might have to push into SM 3.0 and the effect is kinda meh when mixed with reflection so i cut it. My original intention for the rim light was a hack to fake highlights along grazing angles, and reflection is a more robust solution to the same problem.
Picture

Maya CGFX File:

phongnormalreflective.cgfx
File Size: 8 kb
File Type: cgfx
Download File

Unity SHADER File:

phongnormalreflective.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.