Search Unity

Question Depth not visible in game view...

Discussion in 'Shader Graph' started by ZerinLabs, Sep 25, 2020.

  1. ZerinLabs

    ZerinLabs

    Joined:
    Mar 8, 2019
    Posts:
    32
    Hi there,
    While I was preparing some shaders I noted that the depth texture is not visible on the game view however the shader is displayed properly on the editor view.
    I'm using URP + shadergraph + unity 2020.1.6f1

    Please check the images for more details:
    upload_2020-9-25_9-39-40.png

    Notice the "black grandient" on the edge is not appearing on the game view...

    Here you have the shaergraph shader (quite a simple test actually)
    upload_2020-9-25_9-41-5.png

    and the render pipeline I'm using (not that the depth texture is active)
    upload_2020-9-25_9-42-2.png

    Surprisingly it was working properly on the previous 2019 unity version...

    Any clue?

    Thanks in advance :)
     
    Nickelvad likes this.
  2. heroshotgun

    heroshotgun

    Joined:
    Sep 20, 2018
    Posts:
    1
    Hey, have you figured it out? currently experiencing the same thing

    Edit:
    I think I figured it out but im not sure as to how it works yet
    If you go into the pipeline asset renderer (Located in the list under the rendered pipeline asset), and switch between the Rendering > Depth Texture Mode from 'After Transparents' to 'Force Prepass', it'll appear
     
    Last edited: Aug 23, 2023