DocsGRADEEffects

Fog Gradient

4 min read

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 categoryScene (Add Effect > Scene > Fog Gradient)
Pipeline stageScene, after Aurora and before Weather on Camera (scene-linear HDR, before the tonemapper)
Works inLive views only (viewports, PIE, games, Movie Render Queue): it needs the scene depth (LIVE ONLY badge)
C++ / BlueprintFGradeLayer::Effects.FogGradient (FGradeFogGradient), paths Effects.FogGradient.<Field>
ReferenceFog Gradient parameters

Quick start

  1. Choose Add Effect > Scene > Fog Gradient. It starts on Morning Mist at Intensity 50.
  2. 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.
  3. Set Start and End (metres) to your level's scale, then Intensity.
  4. 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

PresetLookBuilt-in look
Morning Mist (default)Soft white ground mist with a warm sun glow, thinning out a few metres upMisty Sunrise (Volumetric)
Blue HourDeep blue to violet fog of the hour after sunset, a pink glow low on the horizon-
Desert HazeWarm, bright, far-reaching dust haze that bleaches the distance under a high sun-
Toxic SwampThick sickly green fog hugging the ground, dense close to the camera-
Horror NightDark cold fog that swallows everything a few metres away, a pale moon glowHorror Night Fog (Volumetric)
CustomYour own values-

The two looks are in the Atmosphere group of the Presets panel.

Settings

GroupSettingDefaultMeaning
MainIntensity50Fog 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.
MainVolumetricoffDrifting 3D density noise and light shafts (see below).
ColourNear, Farlight grey, pale blueFog colour at Start and at End (and beyond, and in the sky).
ColourMid Colour, MidoffA three-colour gradient Near > Mid (half way) > Far.
ColourBrightness+0.5 EVFog 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.
DistanceStart, End2 m, 250 mWhere the fog begins; where it reaches the Far colour (and about 95 % at Intensity 50).
HeightBase Height0 mWorld height (Z) of the fog floor: densest at and below it.
HeightHeight Falloff25 mAbove the base the fog thins to about a third every this many metres (0 = the same at any height).
HeightTop Colour, Top Blendpale blue, 30Colour of the fog higher up and towards the sky, and how much the fog turns to it with height.
SkySky Amount45How much the fog covers the sky (with height fog the horizon fogs most and the zenith stays clearer).
SkySky Distance10000 mAnything 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.
GlowGlow, Glow Colour45, warmSun 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.
GlowUse Scene SunonGlow 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.

SettingDefaultMeaning
Wisp Size15 mSize of the drifting wisps and banks
Wisps55Contrast of the wisps: 0 = smooth fog, 100 = clear gaps between dense banks
Wind, Wind Direction12, 30 degDrift speed (100 = about 10 m/s) and the world yaw it drifts to
Light Shafts60Strength of the shafts towards the glow
QualityMediumLow 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

ModeGPU time at 1080p (estimated)
Simple (Volumetric off)about 0.05 ms, one full-resolution pass
Volumetric Low / Medium / High / Epicabout 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.