Search Issue Tracker

Fixed

Fixed in 2021.3.40f1, 2022.3.34f1, 6000.0.1f1

Votes

0

Found in

2021.3.36f1

2022.3.20f1

2023.2.10f1

2023.3.0b7

6000.0.0b11

Issue ID

UUM-65233

Regression

No

Shader's _CameraDepthTexture is not read when the Camera is rendering to a RenderTexture and has a reduced viewport

-

Reproduction steps:
1. Open the attached “Repro“ project
2. Open the “Assets/Scenes/SampleScene.unity“ Scene
3. Open the Frame Debugger (Window > Analysis > Frame Debugger)
4. Enable it by pressing the “Enable“ button in the upper-left corner
5. Select Event #13 “Draw Mesh Depth Quad“ and observe the Game View
6. Select Event #6 “Draw Mesh Depth Quad“ and observe the Game View

Expected result: A black circle and a white background is seen like in Event #13
Actual result: Only the white background is seen

Reproducible with: 2021.3.36f1, 2022.3.20f1, 2023.2.10f1, 2023.3.0b7

Reproducible on: Windows 10 (22H2)
Not reproducible on: M1 MacOS 14.3.1

Note: This issue is only reproducible with DX11 or DX12 Graphics APIs. No reproduction on Metal and Vulkan.

  1. Resolution Note (fix version 6000.0.1f1):

    Fixed Deferred Depth texture dimensions mismatch when modifying Camera's Viewport Rect

  2. Resolution Note (fix version 2022.3.34f1):

    Fixed Deferred Depth texture dimensions mismatch when modifying Camera's Viewport Rect

  3. Resolution Note (fix version 2021.3.40f1):

    Fixed Deferred Depth texture dimensions mismatch when modifying Camera's Viewport Rect

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.