Exponential shadows are not occluded (visible through the objects)

Hello, I’m having an issue happening only with Exponential Shadow Map without a parent with changing position and rotation.

Basically, my shadows are visible through the mesh.

Once I set the parent to mesh that changing position in real time then It occludes well, but I can not reach the same shadows and perspective with directional light attached to the changing node.

Any advice on how to fix not-occluding shadows?
Thank you in advance

Make sure that the position of the light is such that the light frustum encompasses all your objects.

See this section of the documentation for more information:

1 Like