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 - Directional Masking

12/14/2013

0 Comments

 
Here's a simple version of something i made way back in the day in Unreal - Up Vector snow. This works similarly to the RGB masking from the last shader, except you don't have to paint a mask. Instead, the shader creates a mask based on the world normals, applying snow to all faces facing upwards. I also included a vertex color mask to paint out areas. This will allow you to prevent snow from showing up in places that don't make sense, like underneath an overhang or inside a building. Finally it includes a layer of ice that is independently tweakable and paintable. 

This makes it almost as robust as my old shader. I decided to not include stuff like wind direction and heat sources, as it requires a bit of scripting and the visual effects are somewhat minute. Still, if you've been following along so far i'm pretty sure you could figure it out.
Picture

Maya CGFX File:

phongnormaldirectionalmask.cgfx
File Size: 13 kb
File Type: cgfx
Download File

Unity SHADER File:

phongnormaldirectionalmask.shader
File Size: 20 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.