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
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
Comments (1)
-
gabriel_unity489
Oct 08, 2024 20:50
It also doesn't write to _CameraNormalsTexture and _CameraRenderingLayersTexture
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- PlayerPropertiesChanged event fires before Player Properties are applied
- Opening Media Pop-out in “Before You Start” Tutorial throws “Styles” and “Styles_Dark” messages in the Console window
- Play Mode Scenario selection/highlight is too long and out of its bounds when the Play Mode Scenario window is opened after maximizing
- Asset name is not shown in the Undo History window when a sprite is modified
- Moving a Tab to a floating window fails when floating windows are docked next to each other
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.
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.