Search Unity

Resolved Screen Depth with URP

Discussion in 'Shader Graph' started by florentsteiner, May 31, 2021.

  1. florentsteiner

    florentsteiner

    Joined:
    Apr 13, 2021
    Posts:
    8
    Hi guys!

    I've created a URP project with unity 2021.1.6.
    In the sample scene, I've created a plane (CastShadow: false) with a material with a URP lit shader graph.
    In the settings files I've checked General/Depth Texture ans General/Opaque Texture.
    I've followed this tutorial step by step:
    https://fr.indietrainers.com/video/making-a-water-shader-in-unity-with-urp-tutorial
    ... but nothing appends when I use the Screen Depth node.

    What am I missing :(

    Notes:
    • As soon as I created the shader graph, in the inspector I can read :
    "use of potentially uninitialized variable (AdditionalLightRealtimeShadow) D3D Shadows.hlsl:325"
    • I tryed two other Screen Depth tutorials and still nothing
    Regards,
    Florent
     
  2. florentsteiner

    florentsteiner

    Joined:
    Apr 13, 2021
    Posts:
    8
    I forgot to put Screen Position into Raw mode

    X_X