---
title: "shadowfx: Ridges cast moving shadows as the sun crosses the sky"
description: "Ridges shade valleys as the sun moves, in your own engine material."
canonical: https://appliedmanifold.com/modules/shadows/
site: "Applied Manifold: The spatial compute cloud for 3D reality"
---

1.  [Home](https://appliedmanifold.com/)
2.  [Modules](https://appliedmanifold.com/modules/)
3.  shadowfx

MODULE // shadowfx

# Ridges cast moving shadows as the sun crosses the sky

Ridges shade valleys as the sun moves, in your own engine material.

[Get Free API Key](https://console.appliedmanifold.com/sign-in?next=/api-keys)[Read the docs →](https://appliedmanifold.com/docs/ground/shadows/)

 Shadows off Shadows on

![Ochre Pass at sunrise with horizon shading off](/showcase/shadow/low_sun_off_1600.webp)![The same sunrise with ridges casting shadows](/showcase/shadow/sunrise_1600.webp)

![Ochre Pass at sunrise](/showcase/shadow/sunrise_1600.webp)

Sunrise

![Ochre Pass at noon](/showcase/shadow/noon_1600.webp)

Noon

![Ochre Pass at sunset](/showcase/shadow/sunset_1600.webp)

Sunset

[Use terrain shadows in a material →](https://appliedmanifold.com/docs/ground/shadows/)

## 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.
