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

Question Opaque texture bug?

Discussion in 'Shader Graph' started by Abrakidabra, Feb 20, 2020.

  1. Abrakidabra

    Abrakidabra

    Joined:
    May 12, 2017
    Posts:
    62
    (LWRP using shader graph) I have a black hole shader which is using screen colour to give a lensing effect. It works perfectly in scene view, but refuses to co-operate in game view.

    I have narrowed the problem down to something relating to the opaque texture on/off in the camera settings. I can assure you it is turned on in the render pipeline settings.

    If i turn on opaque texture in the camera settings, i get a bad looking and glitched shader (see image left side)

    If i turn off opaque texture then i just get a grey sphere

    however if i start out with opaque texture off in camera settings, and then - while the game is running - turn the opaque texture on, then off again, it starts to work perfectly in game view.... (like the image right side in scene view)

    What the hell is going on and how do I make it work all the time?


    Pic included to demonstrate
     

    Attached Files: