


Use terrain shadows in a material →
Questions
How does shadowfx shade valleys as the sun moves?
shadowfx stores horizon angles by direction from the terrain heights so a runtime shader can test sun visibility as ridges block light.
What files does a shadowfx compile return?
It returns packed horizon PNG textures, a horizon JSON file, a preview image and a Godot shader include.
Can shadowfx work in engines other than Godot?
Yes, Unity, Unreal Engine and three.js can port the horizon sampling math into their own terrain shaders using the exported textures.