Search Issue Tracker

Won't Fix

Votes

6

Found in

2022.3.26f1

2023.2.19f1

6000.0.0b16

6000.1.0a7

6000.2.0a1

7000.0.0a1

Issue ID

UUM-71142

Regression

No

[URP][Comp/RG] Render Objects Renderer Feature are not writing to the Depth Buffer when Write Depth is enabled

-

Reproduction steps:
1. Open the attached "RenderObjectsDepthBugReport" project
2. Open "Scenes/SampleScene" scene
3. In the Hierarchy window, click on the "Main Camera" to open its Inspector window
4. In the "Render Cubes Depth (Script)" component, double-click on the Render Texture field
5. Observe the results

Expected Result: Both cubes are visible in the Render Texture
Actual Result: Only one cube is visible in the Render Texture

Reproducible with: 2022.3.26f1, 2023.2.19f1, 6000.0.0b16
Could not test with: 2021.3.37f1 (due to errors when downgrading)

Reproducible on: Windows 11 Pro
Not reproducible on: No other environments tested

  1. Resolution Note:

    In SSAO, the DepthNormal prepass is executed for GameObjects in the Opaque Layer Mask. Render Objects that are not in the Opaque Layer Mask cannot write depth. In 6000.2.0b2, the Prepass Layer Mask was added to specify which GameObjects write depth.

    This feature is only available when Render Graph is enabled. This project cannot use Render Graph. The project uses _CameraDepthTexture, which is not used in Render Graph.

Comments (1)

  1. gabriel_unity489

    Oct 08, 2024 20:50

    It also doesn't write to _CameraNormalsTexture and _CameraRenderingLayersTexture

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.