Search Issue Tracker

By Design

Votes

0

Found in

2018.4

2019.4

2019.4.16f1

2020.2

2021.1

2021.2

Issue ID

1301011

Regression

No

[XR] CommandBuffer.DrawMesh only renders to the left eye when using Single Pass Instanced mode

XR SDK

-

Reproduction steps:
1. Open the user's attached "CommandBufferStereoBugRepo.zip" project
2. Load the "SampleScene"
3. Enter Play mode

Expected result: the white cube is rendered to both eyes
Actual result: the white cube is rendered only to the left eye

Reproducible with: 2018.4.31f1, 2019.4.17f1, 2020.2.1f1, 2021.1.0b2, 2021.2.0a1 (Legacy XR, XR SDK 3.2.17)

Tested with:
- Oculus Rift
- Mock HMD

  1. Resolution Note (2021.2.X):

    When you set the render target, you need to specify that all slices should be bound by using this call for example:
    _drawOffscreenCommands.SetRenderTarget(_testRtId, 0, CubemapFace.Unknown, -1);
    By default, only the first slice is bound. By using -1, the driver will bind the entire array.
    https://docs.unity3d.com/ScriptReference/Rendering.CommandBuffer.SetRenderTarget.html

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.