Hello again beautiful community of Babylonjs!
I have been trying to do a clean fade in and out of meshes with no success yet.
The easiest way would be to use FadeInOutBehavior but as you can see (PG below) there are some weird artifacts in the fading between the meshes, this can be fixed by using needDepthPrePass, but if I do this, I see a constant blinking on mobile (Samsung galaxy s6).
I tried to create an animation that clones the material and enables needDepthPrePass on the clone. And then just before the animation starts I switch the materials only during the fade, but this creates a single annoying blink when the switch takes place.
Are there any other ways to do a clean mesh fade? Am I missing something?
Here is the PG example: