SoftShadow shows incorrect shadow when objects merge

hi
see in the attached patch how the shadow doesn t look real when the 2 objects merge together… is this a limit of the shader?
tx
Simone

boxes.rar (25.0 kB)

You can tweak it to be better, some notes in the patch…
Basically set the depth of the depth map closer to the depth of the scene, to make best use of the depth buffer.

boxes.zip (6.3 kB)