- Home /
URP Lit Shader with Stencil
I'm having a hard time understanding how to modify the URP Lit shader to include stencil options. I don't want to use the custom render object stencil override because I need to read from many different stencil buffer IDs. That method seemed to only work well if you have a limited number of buffers that you can assign based on layer masks.
I'm creating a card game that requires each card to have a unique stencil ID. I would like to create 3D art that is stencil masked within the card. The card is Unlit, and I didn't have any trouble modifying that shader code. The Lit shader seems much more complex to me. I just need a way to read from a specific stencil ID. I may also ignore depth so the art doesn't clip through the card itself.
Any ideas?
Your answer
Follow this Question
Related Questions
Is it possible to pass scene color to Sample Texture 2D LOD (URP, Shader Graph)? 0 Answers
Black scene view with URP custom render pass. 0 Answers
How to access vertex color in a code-based URP shader? 1 Answer
URP Blit Render Feature not rendering in Single Pass Instanced VR 0 Answers
Render a sprite only when it's on the parent but not other sprites. 0 Answers