Search Unity

Need help with this Shader; camera Solid color is being rendered on skybox.

Discussion in 'Shaders' started by mubashar437, Mar 30, 2016.

  1. mubashar437

    mubashar437

    Joined:
    Sep 29, 2014
    Posts:
    28
    http://i.imgur.com/bDCorP4.gifv

    I have this triangular flag texture with transparency around it being applied to a quad. The issue is camera Solid color(Blue in the gif) is being rendered on skybox where Texture is transparent.

    Also, When I move camera from Flag, at certain distances, blue color(camera solid color) hides behind red Cube which is using standard shader.

    Shader:http://pastebin.com/yvDGGTzZ

    Using Unity 5.2.4, Shader is default template for Unlit shader with few tags and Commands

    Turning ZWrite Off makes flag render above Red Cube but hides behind default skybox.
     
  2. NemoKrad

    NemoKrad

    Joined:
    Jan 16, 2014
    Posts:
    632
  3. mubashar437

    mubashar437

    Joined:
    Sep 29, 2014
    Posts:
    28
    ZWrite Off solves above issue. One things thats bothering me is I have transparent Queue tagged but it is rendered behind skybox for some reason when I make Zwrite Off. It also hides behind Standard Shader Cube if i Turn ZWrite Off.