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

Resolved Wrong scene texture used for Scene Color node when using URP

Discussion in 'Shader Graph' started by glitchheart, Oct 30, 2019.

  1. glitchheart

    glitchheart

    Joined:
    Sep 6, 2016
    Posts:
    5
    So I started using LWRP recently and set up a very simple water shader with refraction.
    I enabled the Depth- and Opaque-texture setting in the pipeline asset and it worked great with the scene color node in Shader Graph.

    But when I updated to URP and changed some settings it stopped working at some point and now it seems to be using a random texture instead of the scene texture.
    As you can see in the screenshot it currently uses the Main Preview texture of the Shader Graph window.

    upload_2019-10-30_22-40-21.png

    Am I doing something wrong here or is it a bug?
    I'm using Unity 2019.3.0b8 and URP/Shader Graph 7.1.2,
     
  2. glitchheart

    glitchheart

    Joined:
    Sep 6, 2016
    Posts:
    5
    My bad, it worked as soon as I changed the material's type to transparent. Must have set it to opaque by mistake.