Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Diffuse (Alpha) Normal Specular Shader (+ sgraph)

Discussion in 'Made With Unity' started by alexandre-fiset, Aug 16, 2012.

  1. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    714
    Hi there,

    I've been looking on the web for a shader that supports Diffuse (with alpha channel), normal and specular maps. I never found one that did this simple job :( ... So I made one with Strumpy for anybody to use :D (maybe I didn't know where to look, but well, it's done now).

    Here's the shader: View attachment $DSNA.shader
    and here's the Strumpy graph for cutomization View attachment $DSNA.zip



    Enjoy.

    P.S.: Feel free to share your customized version here :)
     
  2. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,663
    Good for windows like those in a church i guess? :)
    Nice!
     
  3. alexandre-fiset

    alexandre-fiset

    Joined:
    Mar 19, 2012
    Posts:
    714
    Yes, perfect for realistic church windows indeed! People can also :

    1. Add distortion effect to it to make things like ice or Plexiglas.
    2. Add Cube/reflection Map for complex windows or mirror.
    3. Tweak it to create any other crazy effect.

    This shader is universal, it contains all maps artists are used to. Remove the alpha and you've got all it takes to render good looking environment (even without alpha, this shader can't be found in the standard asset). I don't know if it works on mobile though...
     
  4. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,663
    Good to know :)
    One question: Does it need Unity Pro or is it also working with Free?
     
  5. jedy

    jedy

    Joined:
    Aug 1, 2010
    Posts:
    579
    No pro features used no worries.
    Seems cool. +1 for cubemaps and craziness in general :D
     
  6. Afassolas

    Afassolas

    Joined:
    Apr 10, 2013
    Posts:
    78
    All i get is a black color and alot of warnings. it is amazing that unity does not support this thing