Sometimes, when the light source is too far away, the ShadowGenerator stops creating shadows. I haveput a couple of boxes in this scene, and you see that those further on the left do not have shadows. When I move the light source further to the left, box on the left also get shadows like the boxes on the right.
Hey, you have to move the light so it could see all of the meshes. But by doing that you will reduce the precision up to a point where shadows will not be able to render
So in this case you need to increase the shadow resolution
We hope to be able to add support for cascaded shadow maps one day as it will directly fix that issue (pinging @sebavan fyi ;))
This box has two shadows: One looks strangely rasterized, the other shadow occurs on two opposite sides of the same box, something that cannot be true for a directional light, I thought.
OK, sure, the second shadow map is bad. But how does the first happen to be displayed on both sides of the same box? Shadows should normally appear on one side of a convex body, only.
Thanks, @Deltakosh, for your help. I turned the far away point light (the sun) into a nearby directional light, and now each and every box has its shadow on the terrain, as expected: