Hello !
So my question is quite simple : how can I have both an explosion using the ParticleHelper and a working HighlightLayer ?
Here is a simple playground that I have crafted using two other playgrounds coming from the documentation :
Playground with issue : Babylon.js Playground
It comes mostly from the playground of the ParticleHelper (explosion : https://www.babylonjs-playground.com/#X37LS1#3) and the playground of the mesh highlighter.
As you can see, at first the sphere is well highlighted (green highlight). But if you press space to trigger the explosion then the mesh becomes completely green, the highlight layer seems to have been affected by the explosion…
I tried playing with layerMasks to separate these two things, but even by putting the explosion on another layerMask the highlightLayer was still affected… I feek like this should be the solution but I couldn’t make it work…
Also I noticed that this issue only appears with the explosion effect : if you replace the effect with fire for example the issue won’t appear ! Do you know what is the difference between these two effects that could explain the visual issue ?
Thanks in advance !