Search Issue Tracker

By Design

Votes

0

Found in

2022.1.9f1

2023.1.0a4

2023.2.0a1

Issue ID

UUM-9473

Regression

Yes

Visual artifacts in the scene when using Command Buffers

--

-

Steps to reproduce:

1) Download attached project and open in Unity

2) Open scene "CommandBufferTest"

3) In the Hierarchy, select CommandBufferTest gameObject, and make sure "Use Command Buffer" checkbox is enabled

4) Rotate around the green sphere in the Scene view

Expected Result: No artifacts appearĀ 

Actual Result: Visual artifacts will appear on the sphere (check the attached video)

Repro:

2023.1.0a4 URP 15.0.0, 2022.2.0b1 URP 14.0.3, 2022.1.9f1 URP 13.1.8, 2022.1.4f1 URP 13.1.8, 2022.1.0b16 URP 13.1.7, 2022.1.0b9 URP 13.1.5, 2022.1.0b8 URP 13.1.5

Regression since:

2022.1.0b8 URP 13.1.5

No Repro:

2022.1.0b7 URP 13.1.5 2022.1.0b5 URP 13.1.5, 2022.1.0b1 URP 13.1.3, 2022.1.0a1 URP 12.0.0, 2021.3.6f1 URP 12.1.7

Device under testing:

MacBook Pro (16-inch, 2021), CPU: Apple M1 Max, Memory: 64 GB, macOS: Monterey 12.1

  1. Resolution Note:

    During OnSceneGUI, the active render texture is only set during repaint events. Calling `Graphics.ExecuteCommandBuffer` with an invalid render texture can result in undefined behaviour.

    The solution is to only submit drawing commands during Repaint events.

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.