Search Unity

Using Overlay Queue for Shadows

Discussion in 'Shaders' started by shaunmitchell84, Feb 5, 2015.

  1. shaunmitchell84

    shaunmitchell84

    Joined:
    Dec 17, 2013
    Posts:
    3
    I am attempting to create dynamic shadows in my game and I have it so that they are cast. It appears though that they only work in the AlphaTest queue and then all of my transparent sprites get rendered on top. What am I missing? I think that LIGHT_ATTENUATION is not returning anything when it gets to the Overlay pass.
     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,520
    Shadows are resolved directly after the opaque pixels are rendered.