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
- “Baking ReferencedPrefabAuthoring!” errors are thrown when creating or deleting unrelated GameObjects in a SubScene that references prefabs
- Cannot scroll down to see all UI Builder Inspector items after content is resized
- Crash on SceneTracker::SetObjectDirty when entering Play mode on a project with specific Assets
- UI Toolkit's TextInput element does not inherit layout parameters from the TextField element when TextField.multiline is true
- The TileMap grid in the Tile Palette is not visible when Screen Space Ambient Occlusion is enabled
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.