Search Issue Tracker
Won't Fix
Votes
3
Found in
2022.3.55f1
Issue ID
UUM-91760
Regression
No
Errors when rendering a camera to render texture with only depth
Reproduction steps for the latest 2022.3 version:
1. Open the attached “DepthShadows.zip“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Enter the Play Mode
4. Observe the Console
Expected result: No errors are present
Actual result: RenderPass errors are being thrown
Reproduction steps for the latest 6000.1 version:
1. Open the attached “DepthShadows.zip“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Make a standalone build in Development mode
4. Observe the build Console
Expected result: No errors are present
Actual result: RenderPass errors are being thrown
{code:java}
Errors:
”RenderPass: Attachment 0 is declared as depth attachment but BGRA8 sRGB is not a valid depth format.
UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)
BeginSubPass: Not inside a Renderpass
UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)
EndRenderPass: Not inside a Renderpass
UnityEngine.Rendering.RenderPipelineManager:DoRenderLoop_Internal (UnityEngine.Rendering.RenderPipelineAsset,intptr,UnityEngine.Object,Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle)”{code}
The bug has been fixed in the Editor (edit: mostly bypassed by disabling NRP there) starting version 6000.0.33f1. However, the problem remains in a Standalone build. The problem is also present in the Editor and Builds for 2022.3 latest version.
{}Reproducible with{}:
- 2022.3.55f1 (for Editor and Builds)
- 6000.0.33f1 (for Builds).
{}Fixed in{}: 6000.0.21f1 (Editor only).
{}Reproducible on{}: M1 Max MacOS 15.1.1 and Windows 10
{}Not reproducible on{}: No other environment tested
Comments (2)
-
tibbers_superpower
Jan 16, 2025 14:15
I believe this issus was introduced in 2022.3.50f1. Since the vision, URP's DepthPrepass act abnormally and _CameraDepthTexture may out of sync
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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Resolution Note:
This issue cannot be reproduced when using Render Graph, which is the recommended and maintained tool for the latest releases. Please try to enable it to bypass this problem. Otherwise, this problem can be avoided by having a different renderer for the depth camera, with Native RenderPass disabled on it.