Search Unity

Cutout version of this Translucent Shader?

Discussion in 'Shaders' started by SpookyCat, Jun 22, 2020.

  1. SpookyCat

    SpookyCat

    Joined:
    Jan 25, 2010
    Posts:
    3,759
    I am using the Translucent shader found on this page http://farfarer.com/blog/2012/09/11/translucent-shader-unity3d/
    and it works very nicely, though I now need a Cutout version, so I made the changes and there is a cutout but the rest of the quad that is empty darkens eveything behind it as seen in the pic.
    upload_2020-6-22_11-10-28.png
    Can anyone help in what I need to do to remove that, or is there a shader that will equally light something thin on the front and back of a double sided quad?
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,336
    You probably need to add
    addshadow
    to the
    #pragma surface
    line.
     
  3. davidnibi

    davidnibi

    Joined:
    Dec 19, 2012
    Posts:
    426
    Try adding
    alpha:fade
    to #pragma.