Search Unity

"Queue"="Overlay+1000" not working with light into scene?

Discussion in 'Shaders' started by sama-van, Mar 25, 2015.

  1. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,734
    Hi,

    (Unity Pro, 5.0f4)

    Having an issue on render last...

    Trying to render a particle on overlay queue.
    Its works without directional into the scene only.

    I simply took the Particle/AlphaBlend shader source and modified the first lines with :

    Category {
    Tags { "Queue"="Overlay+1000" "IgnoreProjector"="True" "RenderType"="Transparent" }
    Blend SrcAlpha OneMinusSrcAlpha
    // AlphaTest Greater .01
    ColorMask RGB
    Cull Off Lighting Off ZWrite Off
    ZTest Always

    Not sure to understand why the Directional light would affect this?

    You can check out the attached pic to get a preview.

    Thanks!
     

    Attached Files:

    Ignacii likes this.
  2. sama-van

    sama-van

    Joined:
    Jun 2, 2009
    Posts:
    1,734
    Just wanted to let you know guys the shader is working just fine on xBoxOne, but not into the Unity Editor (Both game and viewport view)....
     
  3. Ignacii

    Ignacii

    Joined:
    May 23, 2013
    Posts:
    107
    Same here! I am on version 2018.1..

    When shadows are disabled, it works. Hmm something to do with shadows here..
     
    Last edited: May 9, 2018