Bug reproduce: https://playground.babylonjs.com/#K11VKJ#1
StencilBuffer should be set to the previous state in beforeBind rather than true.
Thanks for the report and the fix!
Here’s the PR: