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
- Font character thickness does not adjust properly in UI Toolkit text when changing Bold Weight in Font Asset
- Multiple "[...] is inaccessible due to its protection level" errors are thrown when opening project with Unity Version Control installed
- Sorting icons are tiny and misaligned in Import Activity window
- The Undo system does not record HideFlags.HideInHierarchy changes
- [Linux] Bug Reporter window is in Light mode when the Editor theme is Dark mode
Resolution Note:
The stencil mask shader used in the project is missing XR shader macros. After adding XR macros, effect is working as expected.