
This Community Shaders addon enables rough terrain shadows with infinite distance, in game and on world maps.

Image Credit: KRZ
This feature will only take effect if the corresponding height map of a worldspace is found. Vanilla height maps, including Skyrim itself, Solstheim and the Forgotten Vale are provided.
For other worldspaces, you need to create height maps by yourself, and place them in:
(Game Folder)/data/textures/HeightMaps/
and name them:
[worldspace editorID].HeightMap.[West cell].[South cell].[East cell].[North cell].[z black].[z white].[z min].[z max].dds
A more detailed instruction is located within CS at:
(Game Folder)/Data/textures/HeightMaps/readme.txt.
Terrain Shadows will directly use any height map found in xLODGen outputs, which means you can simply generate height maps in xLODGen and it will work without any additional work. However, height maps in Data/textures/HeightMaps/ will override xLODGen ones.
You don't need to generate height maps every time you update your LODs. Height data usually remains unchanged except for worldspace mods, which means:
How do I know if a height map is found for the worldspace I am in?
Where can I see the effects?
Is it compatible with [Insert World Map Mod]?
Are terrain underside meshes still needed?
Why allow height maps in the HeightMaps directory to override xLODGen output?
