Need help with CustomForward and stencil operation

Hello,

How can I do stencil operation in LWRP/URP?
With the old render pipeline I was able to do operation like that (not my shader here)

But in LWRP/URP I don’t understand how work the CustomForwardRenderer…
Can anyone help me?

you have to manually write (or tweak shader graph generated) shaders and simply add all needed stencil operations. it is straight forward.

Sorry for my late reply.

Thanks for your answer, this solution work. Hoping that the ShaderGraph developers integrate the option.
As we don’t have any documention for manually write shaders in URP.

You mind sharing the code for this?