How to simulate cloud shadows on the ground (no actual clouds needed)

Hey @PatrickRyan thanks very much for you answer,

i want to achieve some thing like this (it’s not my game)


My game is a strategy game with camera from above looking at ground. i just want to add some dynamic on the map and think that clouds shadows is a perfect addition. i expect players will play mostly on PC. Anyway players will have possibility to remove shadows

I faced with new problem that my shader can’t cast shadows.
I found that i must use shadowDepthWrapper but it still doesn’t work. Could you please check?
@Evgeni_Popov Maybe you can help? I saw you answered questions based on shadows and shaders
I found such thread Transparent shadows? - #2 by Evgeni_Popov where you did some specific changes to shader but it was long ago and maybe there is some changes in this area already? also you used some custom block which i don’t know where i can get it
https://playground.babylonjs.com/#ILEAN1#1

Thank you very much for help

1 Like