Alpha doesn't seem to work correctly with postprocess in 4.1.0

Has anything changed in postprocess or alpha blending in 4.1.0? This works properly in 4.0.3 Babylon.js Playground but not in 4.1.0. Since OceanPostProcess was removed due to licensing issues, here’s a screenshot of what happens with the same code:

Any ideas of what might be happening?

Well the postprocess works as alpha is concerned: Babylon.js Playground


lajeMaterial.useAlphaFromDiffuseTexture = true;

and see if that helps.

Yep, that fixed it. Thanks! But I couldn’t find much about this flag, why is it different now?

I don’t really know why you need to use useAlphaFromDiffuseTexture = true: diffuse.hasAlpha = true should be enough as it enables alpha testing, which is what you need here.