I need help debugging why the object behind my stencil shader doesn't render in game mode but does render in editor. I assign the object to the a specific stencil layer, and the place a quad over it with another layer. The quad has this shader applied:
Shader "Custom/StencilMask" { Properties { [IntRange] _StencilID ("Stencil Id", Range(0, 255)) = 0 } SubShader { Tags { "RenderType"="Opaque" "Queue"="Geometry" } Pass { Blend Zero One ZWrite Off Stencil { Ref [_StencilID] Comp Always Pass Replace Fail Keep } } } }
I added render objects to my urp settings