Unity Issue Tracker - URP renderer stencil effect doesn't show in Game view
Closed
UUM-15930
URP renderer stencil effect doesn't show in Game view
Unity: Universal RP
Won't Fix
2023.1.X
2022.2.X
2022.1.X
2021.3.X
this is not a bug. They forgot to add the "AntiPortal" layer to the Main Camera Culling Mask (Main Camera->CullingMask drop down list), so that specific object is not rendered in game.
How to reproduce:
Open the user attached project
Open the scene called TestNewRenderer
Look at the asset UniversalRenderPipelineAsset_NewRenderer to see the render features
See the render feature called "RenderAntiPortalStencil" and see it uses a material/shader that renders the value 2 into the stencil buffer
Create a new GameObject
Add the AntiPortal layer to the new GameObject
Expected result: The AntiPortal GameObject shows up in the Scene view and Game view
Actual result: The AntiPortal GameObject doesn’t show up in the Game view