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 - Unlit Transparency

11/24/2013

0 Comments

 
Before moving onto lighting, I thought it might be a good time to address Transparency. Transparency is quite simple to achieve and can be used to make our Unlit shaders somewhat useful - We don't want lighting for effects like fire, so an unlit semi-transparent shader would make a nice base for that...more on how to actually make fire later :P

Since the type of Transparency is set via blending Mode, I decided to combine all the potential blending modes (that i know of) into one shader. Maya makes this easy with techniques, but Unity does not support this (that i know of) so instead i commented out the portions all but the most basic method (Alpha Clip). In order to try out the other blending modes just uncomment the relevant mode. I also included a Alpha Power attribute for adjusting the threshold of the Alpha.
Picture

Maya CGFX File:

unlittexturealpha.cgfx
File Size: 3 kb
File Type: cgfx
Download File

Unity SHADER File:

unlittexturealpha.shader
File Size: 2 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.