Search Unity

Bug Low Resolution Rendering Pass with Scene Depth are broken

Discussion in 'High Definition Render Pipeline' started by Reanimate_L, Dec 15, 2022.

  1. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    It seems SceneDepth and LowResolution render pass are broken. When material are using default rendering pass it rendered just fine.
    upload_2022-12-15_13-45-41.png
    upload_2022-12-15_13-46-38.png
     
  2. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    703
    Hello,
    Thank you for reporting this.
    I tested and can confirm that I also have the issue.

    Now, I'm not sure if it is maybe expected or not, I will reach out to the developers to try to understand.
    In the meantime, you can circumvent the issue by multiplying the input UV coordinates of the scene depth node by two :
    upload_2022-12-15_17-4-23.png

    If you're using the same shader on regular transparent & low resolution ones, you can setup an HLSL file and a custom function node to automatically switch the multiplier value.

    Here's the HLSL code :

    Code (CSharp):
    1. float _RenderQueueType;
    2.  
    3. void HalfResFix_float( out float o )
    4. {
    5.     o = (_RenderQueueType == 5)? 2:1;
    6. }
    7. void HalfResFix_half( out half o )
    8. {
    9.     o = (_RenderQueueType == 5)? 2:1;
    10. }
    And the setup of the custom function node:
    upload_2022-12-15_17-16-6.png
     
    teutonicus and Reanimate_L like this.
  3. Reanimate_L

    Reanimate_L

    Joined:
    Oct 10, 2009
    Posts:
    2,788
    Thanks for the update @Remy_Unity,
    I'll try your workaround Thanks for the help
     
  4. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    703
    Last edited: Dec 16, 2022
    Reanimate_L likes this.
  5. peeweekVFX

    peeweekVFX

    Joined:
    Oct 19, 2015
    Posts:
    14
    Thanks @Remy_Unity for the workaround :)

    Do you know if this one is gonna be backported to 2022.2/3 as well? it breaks Spaceship Demo's Glowspheres when in low quality mode

    upload_2023-3-13_5-48-4.png
     
  6. Remy_Unity

    Remy_Unity

    Unity Technologies

    Joined:
    Oct 3, 2017
    Posts:
    703
    As you can see in the bugtracker, it is "under consideration" for 2022.2.x :)
    Now, maybe it just went a bit under radar and took dust, but it is very likely to be backported, even until 2021.3.x
     
    peeweekVFX likes this.