Foliage shadows disappearing at a certain distance

Image says it all. I don’t know how to fix this and it’s driving me nuts. I’ve looked at CSM and other stuff, but nothing is fixing this. Any help would be awesome, because this is ruining a project I have due tomorrow…