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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
The stencil mask shader used in the project is missing XR shader macros. After adding XR macros, effect is working as expected.