Fog Gradient
On this page
Fog Gradient is a simple, good-looking depth and height fog with a colour gradient: one colour near the camera, another far away (optionally a third in the middle), thinning out with height towards a top colour, fogging the sky as much as you like and glowing towards the sun. Tick Volumetric for drifting fog banks and light shafts. Five mood presets set everything at once.
| Studio category | Scene (Add Effect > Scene > Fog Gradient) |
|---|---|
| Pipeline stage | Scene, after Aurora and before Weather on Camera (scene-linear HDR, before the tonemapper) |
| Works in | Live views only (viewports, PIE, games, Movie Render Queue): it needs the scene depth (LIVE ONLY badge) |
| C++ / Blueprint | FGradeLayer::Effects.FogGradient (FGradeFogGradient), paths Effects.FogGradient.<Field> |
| Reference | Fog Gradient parameters |
Quick start
- Choose Add Effect > Scene > Fog Gradient. It starts on Morning Mist at Intensity 50.
- Click a preset card (one undo step): it sets the colours, distances, height, sky, glow and noise values and keeps Intensity, Volumetric, Use Scene Sun and Quality.
- Set Start and End (metres) to your level's scale, then Intensity.
- Tick Volumetric for wisps, banks and light shafts.
Editing any value a preset sets switches the preset to Custom; the renderer always uses the values themselves.
Presets
| Preset | Look | Built-in look |
|---|---|---|
| Morning Mist (default) | Soft white ground mist with a warm sun glow, thinning out a few metres up | Misty Sunrise (Volumetric) |
| Blue Hour | Deep blue to violet fog of the hour after sunset, a pink glow low on the horizon | - |
| Desert Haze | Warm, bright, far-reaching dust haze that bleaches the distance under a high sun | - |
| Toxic Swamp | Thick sickly green fog hugging the ground, dense close to the camera | - |
| Horror Night | Dark cold fog that swallows everything a few metres away, a pale moon glow | Horror Night Fog (Volumetric) |
| Custom | Your own values | - |
The two looks are in the Atmosphere group of the Presets panel.
Settings
| Group | Setting | Default | Meaning |
|---|---|---|---|
| Main | Intensity | 50 | Fog strength. At 50 a fog at the base height reaches about 95 % at End; 25 = at most half opaque; 100 = 95 % half way to End. |
| Main | Volumetric | off | Drifting 3D density noise and light shafts (see below). |
| Colour | Near, Far | light grey, pale blue | Fog colour at Start and at End (and beyond, and in the sky). |
| Colour | Mid Colour, Mid | off | A three-colour gradient Near > Mid (half way) > Far. |
| Colour | Brightness | +0.5 EV | Fog brightness in stops. 0 = a white fog one stop over the exposure's mid grey, so it reads the same in any scene; +1 = twice as bright (overcast sky); -2 = a dark night fog. |
| Distance | Start, End | 2 m, 250 m | Where the fog begins; where it reaches the Far colour (and about 95 % at Intensity 50). |
| Height | Base Height | 0 m | World height (Z) of the fog floor: densest at and below it. |
| Height | Height Falloff | 25 m | Above the base the fog thins to about a third every this many metres (0 = the same at any height). |
| Height | Top Colour, Top Blend | pale blue, 30 | Colour of the fog higher up and towards the sky, and how much the fog turns to it with height. |
| Sky | Sky Amount | 45 | How much the fog covers the sky (with height fog the horizon fogs most and the zenith stays clearer). |
| Sky | Sky Distance | 10000 m | Anything farther counts as sky (a Sky Atmosphere's far plane always does). Keep it closer than a sky sphere mesh and past your farthest mountains. |
| Glow | Glow, Glow Colour | 45, warm | Sun light scattered in the fog: a bright glow around the sun (and the volumetric shafts). The colour is multiplied by the scene sun's colour. |
| Glow | Use Scene Sun | on | Glow towards the brightest directional light; off (or without one), Glow Yaw / Glow Pitch set the direction. |
The fog is added to the HDR image before the tonemapper, so exposure, bloom and the grade treat it as real light. Distances are metres.
Volumetric
Volumetric ray-marches the fog at half resolution through drifting 3D noise and lets the glow cast light shafts between trees, columns or window frames, shadowed by the scene depth on screen (strongest looking towards the glow). The result is upsampled along the depth edges, so silhouettes stay clean.
| Setting | Default | Meaning |
|---|---|---|
| Wisp Size | 15 m | Size of the drifting wisps and banks |
| Wisps | 55 | Contrast of the wisps: 0 = smooth fog, 100 = clear gaps between dense banks |
| Wind, Wind Direction | 12, 30 deg | Drift speed (100 = about 10 m/s) and the world yaw it drifts to |
| Light Shafts | 60 | Strength of the shafts towards the glow |
| Quality | Medium | Low 10, Medium 16, High 24, Epic 32 ray-march steps (Auto = the Studio quality) |
The drift follows the game time: it pauses with the game and renders identically in Movie Render Queue.
Cost
| Mode | GPU time at 1080p (estimated) |
|---|---|
| Simple (Volumetric off) | about 0.05 ms, one full-resolution pass |
| Volumetric Low / Medium / High / Epic | about 0.15 / 0.25 / 0.4 / 0.6 ms (half resolution) |
Tips
- Fog Gradient is a grading fog computed from the scene depth after lighting, not the engine's Exponential Height Fog: translucent surfaces and particles are fogged like the opaque surface behind them. It sits nicely on top of an existing height fog for colour and mood.
- Set Sky Distance below the distance of a sky sphere mesh, or the sphere is fogged like terrain.
- For layered haze that drifts with the wind and scatters the sun, see also Volumetric Haze; for aerial perspective only, Atmosphere.