Repro: https://www.babylonjs-playground.com/#UXCB15#120
How can I get renderOverlay to work on custom vertex displaced material ?
Repro: https://www.babylonjs-playground.com/#UXCB15#120
How can I get renderOverlay to work on custom vertex displaced material ?
You can fix somehow the overlay having some “holes” by raising the zOffset of the material by using scene.getOutlineRenderer().zOffset = 10
(but you will still get some artifacts depending on the view angle). However, you won’t be able to have the overlay follow the deformations because the overlay renderer can’t use a custom vertex shader for its rendering.
I see. ok, gotcha, thanks !!