Is needDepthPrePass work for ShaderMaterial too?

i try needDepthPrePass = true;

all material is shaderMaterial

It should work, can you create a repro in the playground ?

1 Like

that not work on standardmaterial too?
when one mesh inside of the others : with needDepthPrePass = true;
both is wrong result

I think you may want to use alphaIndex instead:

Doc: Transparency and How Meshes Are Rendered - Babylon.js Documentation

1 Like


1 Like!121913!121914!121915!121916!121918$23

1 Like