Soft transparent shadows not working for materials without textures

See this PG: Babylon.js Playground
The material of the cube does not have a texture. I just used the alpha property of the material.
I would expect to get a light grey shadow (with dithering). Is this a known limitation? Is a diffuse/opacity texture required?

pinging @Evgeni_Popov

In fact the global alpha value is taken from mesh.visibility:

I think the global alpha should really be mesh.visibility * material.alpha, going to make a PR.


1 Like