Setting stencils in shader graph

Apparently we’re supposed to ask here to get the stencil buffer settings exposed to Shader graph. I don’t know how many years shader graph has been out already, but it’s incomprehensible that this simple thing isn’t in yet.

Referring from this post:

10 Likes

Up this request! This would be a huge quality of life improvement! We had to customize URP/ShaderGraph package to add stencil support which is a huge pain for updating the project.

1 Like

+1

+1

I get that the render state switch which the stencil buffer requires breaks srp batching and that makes it potentially difficult to use without issues for some users - but I very much agree, modifying the shadergraph template to include stencil buffer ist absolutely doable hence it should have been added a long time ago, maybe hidden behind a toggle if need be.
+1

+1

Generally being able to have Shadergraph usable in UI seems like a great application for shadergraph to implement simple effects and patterns. The stencil is one of the things that’s blocking it from doing so.

+1

Are there any official places to request this feature?

I am starting to feel like I’ll just bite the bullet and learn HLSL.

+1
This would be very useful to have and seems very simple to implement

+1 I need stencil too

Please +1 VERy needed

If you want this feature go here and tell Unity → https://portal.productboard.com/8ufdwj59ehtmsvxenjumxo82/c/2110-shader-graph-stencil-operations