Fog Gradient
On this page
Depth and height fog with a colour gradient from near to far and from the ground up, in front of the sky; optional volumetric look with drifting density and light shafts. Live views only.
| Studio category | Scene |
|---|---|
| Pipeline stage | Scene (scene-linear HDR, before the tonemapper) |
| Default position | 8 in its stage |
| Works in | Live views only (viewports, PIE, games, Movie Render Queue): needs scene depth or the level |
| C++ / Blueprint | FGradeLayer::Effects.FogGradient (FGradeFogGradient) |
Manual: Fog Gradient. Every numeric parameter can be set at runtime with Set Layer Parameter using the path shown (see Animation).
Parameters
Depth / height fog with a colour gradient (near to far, ground to sky), scene-linear before the tonemapper; optional volumetric look (noise and light shafts).
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Enabled | Effects.FogGradient.Enabled | on/off | off | Turns the effect on. |
| Intensity | Effects.FogGradient.Intensity | 0..100, keyable | 50 | 0..100: fog strength. At 50 a fog at the base height reaches about 95 % at End Distance; lower values thin it and let the distance show through (25 = at most half opaque), higher values thicken it (100 = 95 % half way to End Distance). |
| Volumetric | Effects.FogGradient.Volumetric | on/off | off | Volumetric look: drifting 3D density noise (wisps and banks) and light shafts towards the glow, shadowed by the scene. Ray-marched at half resolution: about 0.15 / 0.25 / 0.4 / 0.6 ms at 1080p for Low / Medium / High / Epic (off: about 0.05 ms). |
| Preset | EGradeFogGradientPreset | Morning Mist | Mood preset. In the GRADE panel, picking one sets the colours, distances, height, sky, glow and noise values (keeps Intensity, Volumetric, Use Scene Sun and Quality); editing one of them afterwards switches to Custom. The renderer always uses the values. |
Colour
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Near Color | Effects.FogGradient.NearColor.R/G/B/A | colour, keyable | (0.86, 0.88, 0.9) | Fog colour close to the camera (at Start Distance). |
| Far Color | Effects.FogGradient.FarColor.R/G/B/A | colour, keyable | (0.7, 0.79, 0.92) | Fog colour far away (at End Distance and beyond, and in the sky). |
| Use Mid Color | Effects.FogGradient.UseMidColor | on/off | off | Three-colour gradient: Near -> Mid (half way) -> Far. Off: a straight Near -> Far blend. |
| Mid Color | Effects.FogGradient.MidColor.R/G/B/A | colour, keyable | (0.8, 0.84, 0.9) | Fog colour half way between Start and End Distance (when Use Mid Colour is on). |
| Brightness | Effects.FogGradient.Brightness | -4..4 EV, keyable | 0.5 | Fog brightness in stops: 0 = a white fog one stop over the exposure's mid grey (it follows the exposure, so it reads the same in any scene); +1 = twice as bright (a bright overcast sky), -2 = a dark night fog. |
Distance
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Start Distance | Effects.FogGradient.StartDistance | >= 0 Meters (slider to 1000), keyable | 2 | Distance from the camera where the fog begins (m). |
| End Distance | Effects.FogGradient.EndDistance | >= 1 Meters (slider to 5000), keyable | 250 | Distance where the colour reaches Far Colour and (at Intensity 50) the fog is about 95 % thick (m). |
Height
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Base Height | Effects.FogGradient.BaseHeight | number Meters | 0 | World height (Z, m) of the fog floor: the fog is densest at and below it. |
| Height Falloff | Effects.FogGradient.HeightFalloff | >= 0 Meters (slider to 500), keyable | 25 | Height fog: the fog thins out above Base Height, to about a third every this many metres (0 = the same density at any height). |
| Top Color | Effects.FogGradient.TopColor.R/G/B/A | colour, keyable | (0.68, 0.79, 0.96) | Colour of the fog higher up (over the fog layer and towards the sky), blended in by Top Blend. |
| Top Blend | Effects.FogGradient.TopBlend | 0..100, keyable | 30 | 0..100: how much the fog turns to Top Colour with height (0 = the near / far gradient only). |
Sky
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Sky Amount | Effects.FogGradient.SkyAmount | 0..100, keyable | 45 | 0..100: how much the fog covers the sky (with height fog the horizon fogs most and the zenith stays clearer). |
| Sky Distance | Effects.FogGradient.SkyDistance | >= 100 Meters (slider to 1000000) | 10000 | Anything farther than this counts as sky (m; the far plane of a Sky Atmosphere always does). Keep it closer than a sky sphere / dome mesh and past your farthest mountains; the last 20 % blend. |
Glow
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Glow | Effects.FogGradient.Glow | 0..100, keyable | 45 | 0..100: light of the sun scattered in the fog: a bright glow around it (forward scattering) and the light shafts of the volumetric look. |
| Glow Color | Effects.FogGradient.GlowColor.R/G/B/A | colour, keyable | (1, 0.85, 0.62) | Colour of the glow (multiplied by the scene sun's colour when it comes from the scene). |
| Use Scene Sun | Effects.FogGradient.UseSceneSun | on/off | on | Glow towards the brightest directional light of the world; without one (or off) Glow Yaw / Glow Pitch set the direction. |
| Glow Yaw | Effects.FogGradient.GlowYaw | -180..180 deg | 40 | Compass direction of the glow when it does not follow the scene sun (world yaw in degrees, 0 = +X). |
| Glow Pitch | Effects.FogGradient.GlowPitch | -10..90 deg | 12 | Elevation of the glow when it does not follow the scene sun (degrees above the horizon). |
Volumetric
| Parameter | Blueprint path | Values | Default | Description |
|---|---|---|---|---|
| Noise Scale | Effects.FogGradient.NoiseScale | 1..200 Meters | 15 | Volumetric: size of the drifting fog wisps and banks (m). |
| Noise Amount | Effects.FogGradient.NoiseAmount | 0..100, keyable | 55 | Volumetric, 0..100: contrast of the wisps (0 = smooth fog, 100 = clear gaps between dense banks). |
| Wind | Effects.FogGradient.Wind | 0..100 | 12 | Volumetric, 0..100: wind speed of the drift (100 = about 10 m/s). |
| Wind Direction | Effects.FogGradient.WindDirection | -180..180 deg | 30 | Volumetric: direction the fog drifts to (world yaw in degrees, 0 = +X). |
| Light Shafts | Effects.FogGradient.LightShafts | 0..100, keyable | 60 | Volumetric, 0..100: light shafts: the glow is shadowed by the scene (screen space, from the depth), so beams fan out between trees, columns or window frames. Strongest looking towards the glow. |
| Quality | EGradeEffectQuality | Medium | Volumetric ray-march quality (half resolution; approximate GPU cost at 1920x1080 on a mid-range GPU): Low = 10 steps, about 0.15 ms; Medium = 16 steps, about 0.25 ms; High = 24 steps, finer shafts and noise, about 0.4 ms; Epic = 32 steps, about 0.6 ms. Auto = the Studio quality. |
Enumerations
Fog Gradient Preset (EGradeFogGradientPreset)
Mood presets of the Fog Gradient (each sets the colours, distances, height, sky, glow and volumetric noise values; editing one of them in the GRADE panel switches to Custom).
| Value | Meaning |
|---|---|
| Morning Mist | Soft white ground mist with a warm sun glow, thinning out a few metres up (the default look). |
| 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. |
| Custom | Your own values. |
Effect Quality (EGradeEffectQuality)
Per-effect quality override. Auto follows grade.Quality (the Studio quality setting).
| Value | Meaning |
|---|---|
| Auto | - |
| Low | - |
| Medium | - |
| High | - |
| Epic | - |
Generated from the GRADE C++ headers. Back to the reference index.