Fence shadow is fully black unless i use Realtime on DirectLighting.

Issue #1
in Stationary mode the fence shadow isn’t showing properly

Issue #2
In Realtime Mode the fence shadow vanishes too fast and becomes very low res, How do i control the distance a shadow disappears?
image