Search Issue Tracker
By Design
Votes
0
Found in
2022.3.56f1
6000.0.35f1
6000.1.0b3
6000.2.0a1
Issue ID
UUM-96042
Regression
No
_CameraDepthTexture is not generated when SSAO and Depth Texture options are enabled in URP Asset
Reproduction steps:
1. Open the attached project "ReproProj"
2. Open the “/Assets/Scenes/SampleScene.unity” Scene
3. Open Frame Debugger (Window > Analysis > Frame Debugger)
4. Select “(RP 2:0) Draw Skybox“ drop-down arrow
5. Select the “Camera.RenderSkybox” drop-down arrow
6. Select “Draw Mesh”
7. Observe the RenderTarget in the Details
Expected result: “_CameraDepthTexture” exist
Actual result: “_CameraTargetAttachmentA” is present
Reproducible with: 2022.3.56f1, 6000.0.35f1, 6000.1.0b3, 6000.2.0a1
Testing environment: Windows 10 Enterprise 21H2, Apple M1 Ultra
Not reproducible on: No other environment tested
Note:
- Does not reproduce with SSAO disabled
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
- Unity CIL Linker fails on Player build when persistent listeners have "<" and ">" in their XML attribute names
- ”Lighting data asset ‘LightingData’ is incompatible with the current Unity version…” warnings are thrown when saving Indoors (URP) and Outdoors (URP) Scenes as Scene Templates
- [iOS] The screen blinks when transitioning from custom to Unity splash screen
- [macOS] ”Ignoring depth surface load action as it is memoryless” warnings are thrown when taking Game View Snapshot
- UI Builder Inspector scrolls back up when changes on an expanded but not fully displayed Inspector tab are saved
Resolution Note:
Hello.
When using rendering features that require a depth prepass, _CameraDepthTexture is generated during the depth prepass (in this case the DepthNormalPrepass) and is available as input for all subsequent passes. Doing a subsequent depth copy after the opaque pass is redundant and is optimized away.