I have several meshes in a scene, casting shadows, and some of the meshes are fading out at some point. Is there a way to make the shadows of the fading meshes fade out too? I haven’t found any solutions to this online.
Oh, nice, thank you! And I got even closer with a second floor that has OnlyShadowMaterial (That I couldn’t get to work on the typescript playground) https://playground.babylonjs.com/#2SK74I
But yeah, as @sebavan said, it would be nice to have a proper, efficient way to do it, so that a shadow from a semi-transparent red die, that has an opacity map for the dots, can be casted, but I guess it’s pretty hard to find a really efficient way to do that.
In any case, these replies answer my question, so I will mark this as answered, and hopefully one day we will have a better solution to this.
Oh I knew it was due to z fighting, but I didn’t know the reason why 0.99 works though, i expected that it shouldn’t work as well. I tried playing with alpha index, suspecting that it has to do something with the render order, but I guess it doesn’t make sense to use alpha index when mesh is not transparent.