Sky and Atmosphere
Cloud Shadows
Cloud Shadows lets cloud shadows drift over the ground, cast by World Lighting's sun. Turn on Cast Cloud Shadows in World Lighting, pick a pattern and a size, and the clouds move with the wind, in the editor, in Sequencer and in your packaged game.
Overview
| The problem | What to do |
|---|---|
| A sunny exterior looks flat and evenly lit. | Turn on Cast Cloud Shadows. |
| You want moving shade without a Volumetric Cloud. | Cloud Shadows needs no cloud in the level. |
| Clouds should move the same way in every render. | Set World Lighting's Flowmap > Time Source to Manual and key its time in Sequencer. |
| A sunset shot needs cloud shadows too. | They keep their size on the ground at any sun height. |
Cloud Shadows takes light away from the sun only. The sky light keeps lighting the shade, as under real clouds.
How It Works
The clouds are a flat layer at Cloud Height. Every point the sun lights looks along the sunlight toward the sun, and the cloud pattern where that line crosses the layer decides how much sun reaches it.
- The shadows keep their size at a low sun. A cloud 600 m across throws a shadow about 600 m across on flat ground, at noon or at sunset.
- Turning the sun moves the shadows by the layer's parallax, as real clouds do: further for higher clouds and a lower sun. At 20 degrees, turning the sun 2 degrees moves the shadows of a 1.5 km high layer about 140 m.
- The wind moves the layer, so the shadows cross the ground at Wind Speed toward Wind Direction, whatever the sun does.
- Hills and buildings catch the shadow of the cloud straight up the sunlight from them, not the one straight above.
Under the hood, the clouds are a gobo on World Lighting's sun: its Light Function, Unreal's own system for shaping a light. Unreal draws it at full screen detail in the sun's light function pass. The deferred light, Lumen, volumetric fog, translucency and the Path Tracer all read the sun's light function from the same coordinates, so they show the same clouds.
Using It
Select the World Lighting actor.
In the Details panel, open Cloud Shadows and turn on Cast Cloud Shadows.
You should see: soft cloud shade on the ground, moving with the wind in a realtime viewport.
Set Cloud Size: about 3 km gives fair-weather cumulus about 600 m across with the default Cumulus Shadows pattern.
Set Cloud Shadow Strength. 0.85 lets a little sun through thin edges.
Set Wind Speed and Wind Direction.
Optional, under Advanced: Softness for softer edges, Cloud Height for the layer's height.
World Lighting Presets save the cloud settings, and blends between presets blend them too.
Best Practices
- Match a Volumetric Cloud. If the level also has one, set Cloud Height to its layer's bottom altitude so the shadows line up with the clouds you see. Turn off Cast Cloud Shadows on the Directional Light's Atmosphere and Cloud settings, or the clouds shade twice.
- Large worlds. The pattern repeats every Cloud Size; the shadows reach ten repeats from the camera and fade out beyond (the sun's Light Function Fade Distance, set for you).
- Low sun. Expect the shadows to move fast when the sun moves at sunset: a lower sun means a longer line to the clouds.
- Renders. Use Manual time on World Lighting's Flowmap so the clouds sit in the same place in every render.
Performance
| What | Cost | How it was found |
|---|---|---|
| Clouds on the sun's light | About 0.03 ms per frame at 1200 x 1200: 0.013 ms in the sun's light function pass, 0.008 ms for volumetric fog, about 0.013 ms more to light translucency | Measured with ProfileGPU, one frame with and without clouds, sun at 5 degrees, RTX 5090, Unreal Engine 5.8.3, 2026-11-17 (cloud layer capture). |
| Clouds on the sun's light (earlier capture) | 0.013 ms per frame at 1600 x 900 | Measured with ProfileGPU, RTX 5090, 2026-10-21 (Cloud Shadows capture). |
| Sun moving | The sun's light is rebuilt when its height changes | When the sun turns, Unreal redraws its cached shadow anyway. |
Costs on mid-range GPUs have not been measured yet. Cloud Shadows has no scalability setting of its own.
Debugging
| What you see | Likely cause | How to check | Fix |
|---|---|---|---|
| No cloud shade | Cast Cloud Shadows off, Cloud Shadow Strength 0, or the sun is off | World Lighting's Cloud Shadows and Sun | Turn them on |
| The shadows are too big or too small | Cloud Size | Top-down view of the ground | Change Cloud Size |
| Shadows don't match the clouds of a Volumetric Cloud | Cloud Height differs from the cloud layer | Compare with the cloud's Layer Bottom Altitude | Set Cloud Height to it |
| Clouds shade twice | The Directional Light's own Cast Cloud Shadows (Volumetric Cloud) is on too | The sun's Atmosphere and Cloud settings | Turn one off |
| Clouds fade out far away | Light Function Fade Distance | The sun's Light Function settings | Raise Cloud Size, or the fade distance |
| Shadows jump between renders | World Time drives the clouds | World Lighting Flowmap > Time Source | Set Manual and key the time |
stat gpu shows the sun's light function under Lights. stat CGFLightingSuite counts the sun under Gobos: Lights Not In Atlas: the clouds draw in the sun's own pass, not in the Light Function Atlas.
Settings
| Property | Description |
|---|---|
| Cast Cloud Shadows | Clouds drift over the ground and shade the sunlight. |
| Cloud Shadow Strength | 1 removes the sun under a cloud. 0 casts no shadow. Default 0.85. |
| Clouds | The tiling cloud pattern. When empty, Cumulus Shadows is used. |
| Cloud Size | World size of one repeat. Cumulus Shadows holds about five clouds across, so 3 km gives clouds of about 600 m. |
| Wind Speed | In meters per second. Low clouds move about 5 to 15 m/s. |
| Wind Direction | Compass direction the clouds move toward, in degrees (0 is +X, 90 is +Y). |
| Softness (Advanced) | Softens the cloud edges. |
| Cloud Height (Advanced) | Height of the cloud layer above the level's origin. Default 1500 m. |
World Lighting sets the sun's Light Function Scale and Light Function Fade Distance while Cast Cloud Shadows is on, and gives them back when you turn it off.
Limitations
- One flat layer. The clouds have no thickness and no shape of their own; the pattern is a flat picture.
- They only take sunlight away. No light shafts through gaps and no sky light shading. For volumetric clouds, use Unreal's Volumetric Cloud.
- Not with MegaLights on the sun. Unreal draws the sun outside MegaLights by default (
r.MegaLights.DirectionalLights0). If you turn that on, MegaLights draws the sun without the clouds: it reads light functions from the Light Function Atlas only, and the clouds draw in the sun's own pass. - Gray only. Directional Light gobos show colors in the Path Tracer only.
- World Lighting's sun only. The settings are part of World Lighting.
- Below about 1 degree of sun height the layer is projected as at 1 degree.
- Changes the look of saved levels. Levels saved before the cloud layer model show their cloud shadows from a layer at 1500 m: at a low sun, the shadows are smaller and in other places than before.