hey
i try needDepthPrePass = true;
all material is shaderMaterial
It should work, can you create a repro in the playground ?
that not work on standardmaterial too?
when one mesh inside of the others
https://www.babylonjs-playground.com/#PJQTXN#4 : with needDepthPrePass = true;
both is wrong result
I think you may want to use alphaIndex instead:
https://www.babylonjs-playground.com/#PJQTXN#7
Doc: Transparency and How Meshes Are Rendered - Babylon.js Documentation
thanks