Search Issue Tracker

By Design

Votes

1

Found in [Package]

10.1.0

Issue ID

1291679

Regression

No

[URP][XR] Stencil overrides cause object not being rendered on one of the eye views, when using them with XR

Package: Scriptable Render Pipeline Universal

-

How to reproduce:
1. Open user's project "URPStencils.zip"
2. Open "StencilBasics" Scene in Assets -> Shaders -> StencilBasics
3. Enter Play Mode
4. Observe the Game view
5. Select "GHA-URP-Stencil Layers_Renderer (Forward Renderer Data)" in Assets -> Shaders -> StencilBasics
6. In the Inspector window expand "Stencil Content (Render Objects)"
7. Under Overrides drop-down, toggle the "Stencil" checkbox on and off
8. Observe the Game view

Expected results: With "Stencil" turned on, the sphere is visible in both eyes
Actual results: With "Stencil" turned on, the sphere is visible only on the left eye

Reproducible with: 10.1.0 (2020.2.0b12, 2021.1.0a6), 10.2.0 (2020.2.0b12,2021.1.0a6)
Couldn't test with: 2018.4, 2019.4, 2020.1 (failed to downgrade to a functional project)

  1. Resolution Note:

    The stencil mask shader used in the project is missing XR shader macros. After adding XR macros, effect is working as expected.

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.