I’ve been playing around with ParticleSystem and transparency in babylon and found some weird behavior.
It is stated in the docs (Transparency and How Meshes Are Rendered - Babylon.js Documentation) that ParticleSystem is rendered after all the alpha-blended meshes. But in reality if I render a semi-transparent mesh (with visibility 0.99 for example), I notice that it covers my particles independent of what alphaIndex I set to it.
Here is the condensed example based on the other one I found in the playground:
You can see that sphere covers the particle system even if particles are in front of it.
I understand that making particles respect sphere surface may be tricky because of the zbuffer stuff, but for my purposes it would suffice to render the scene the other way - i.e. to have particles rendered on top of the sphere (including the ones that are inside).
Is it possible? I am currently looking at SPS which seems to be promising, but is there any way to do that with the simple ParticleSystem?
Thank you in advance!