Stencil buffer set wrong in highlightlayer excluded meshes after render

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:

1 Like