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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note:
The stencil mask shader used in the project is missing XR shader macros. After adding XR macros, effect is working as expected.