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
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)
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
- Getting a deprecated package for JetBrains Rider pop up when opening or creating a project
- [Android] Volume level of the same audio file is different on Samsung Galaxy Tab A8 between 2023.3.0b3 and 2023.3.0b4
- ‘Expected end of value’ warning occurs when a property declaration includes five or more variable references
- Tags window completely breaks and throws Exception errors when Adding a Tag to a GameObject
- Crash on BurstCompilerService::CompileAsync when entering Play mode in a specific scene
Resolution Note:
The stencil mask shader used in the project is missing XR shader macros. After adding XR macros, effect is working as expected.