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

Hey @Evgeni_Popov ,
I faced with a problem that useBlurExponentialShadowMap = true; breaks self shadows
what i want that ground meshes also could give some shadows on each other but this property gives full shadow like there is no light at all
so i need this property for clouds but i don’t need it for other shadows

i added 48 line in this example shadowGenerator.addShadowCaster(ground);

the only solution i see for now is to create seperate shadow generators for clouds and for other shadows with different parameters but maybe there is other solution?
Thanks!

Self shadowing is a problem with exponential shadow map. See:

What you can try is to use close exponential instead, and set the shadow min/max values to appropriate values:

2 Likes

Thanks, not sure if it will work on big map where light should be far from everything because of

  • You must ensure that the light is as close as possible to the shadow casters.

anyway i will try
Thanks again!