Seems that there is no tutorial for this topic on this site
And stencil buffer is mentioned in many different docs like Material, GraphicsDevice and Camera, which is confusing.
If possible can someone provide a demo where the model being applied with a special material always fails the stencil test? Huge appreciates!
There is an example in the github repo of using stencil parameters on materials. It’s not super clear, but hopefully enough to get you started?