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
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
- Warnings in the Bug Reporter window are cut off and not truncated when the Bug Reporter window is resized to its minimum size
- Color is incorrectly applied to objects when initialized with non-normalized parameters
- SerializationUtility.GetManagedReferencesWithMissingTypes() don't return null when “Prefab has missing SerializeReference Types“ warning banner is present
- Memory leak when VFX Graph is open and Camera has "Target Texture" enabled
- The Canvas component's warning box is missing an apostrophe when Additional Shader Channels is set to "Normal" and "Tangent" with Render Mode set to "Screen Space - Overlay"
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.