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
- [Linux] Cannot reorder GameObjects in the Hierarchy when the AI Assistant package is installed
- [iOS] Text Input field stops receiving changes when the "Cancel" button is used on the soft keyboard
- [WebGPU] URP RenderGraph RenderPass doesn't clear textures
- Query Builder items display raw code style names instead of human readable labels in search field
- “+” button does nothing and has no functionality when clicked in Human Template "Bone Template" list
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.