Fog Settings
On this page
- Parameters
- Fog Shape Settings (FGradeFogShapeSettings)
- Fog Appearance (FGradeFogAppearance)
- Fog Noise Settings (FGradeFogNoiseSettings)
- Fog Distortion Settings (FGradeFogDistortionSettings)
- Fog Surface Settings (FGradeFogSurfaceSettings)
- Fog Lighting Settings (FGradeFogLightingSettings)
- Fog Fade Settings (FGradeFogFadeSettings)
- Fog Interaction Settings (FGradeFogInteractionSettings)
- Fog Time Settings (FGradeFogTimeSettings)
- Enumerations
- Fog Shape (EGradeFogShape)
- Fog Noise (EGradeFogNoise)
Every look parameter of a GRADE Fog Volume or Fog Spline (what fog presets store), in the groups of the Volumetrics panel tabs. Keyable in Sequencer; set it from Blueprint with Set Fog Settings or the single setters of the volume.
C++: FGradeFogSettings. Manual: Fog Settings.
Parameters
Every look parameter of a GRADE fog volume (what presets store). Keyable in Sequencer (Interp): the actors push changes to their materials every frame, in the editor and in game, no extra event track needed.
Nested settings: Shape (FGradeFogShapeSettings); Appearance (FGradeFogAppearance); Noise (FGradeFogNoiseSettings); Distortion (FGradeFogDistortionSettings); Surfaces (FGradeFogSurfaceSettings); Lighting (FGradeFogLightingSettings); Fade (FGradeFogFadeSettings); Interaction (FGradeFogInteractionSettings); Time (FGradeFogTimeSettings).
Fog Shape Settings (FGradeFogShapeSettings)
Shape of the fog inside the box.
| Parameter | Values | Default | Description |
|---|---|---|---|
| Shape | EGradeFogShape, keyable | Box | Footprint of the fog inside the box. |
| Edge Falloff | 0..1, keyable | 0.35 | Soft edge, as a fraction of the smallest half size of the box (0 = hard edge, 1 = fades from the centre). |
| Invert | on/off, keyable | off | Inverts the shape: fog fills the box except the shape (a clear bubble or tunnel inside a fog bank). |
| Height Gradient | 0..1, keyable | 0 | Thins the fog towards the top of the box (0 = uniform height, 1 = full at the bottom, none at the top). Ground mist likes 0.6 - 1. |
Fog Appearance (FGradeFogAppearance)
Density and colour.
| Parameter | Values | Default | Description |
|---|---|---|---|
| Density | >= 0 (slider to 10), keyable | 1 | Overall density (opacity) multiplier. 0 hides the fog; animate it to fade a volume in or out. |
| Extinction | >= 0 (slider to 20), keyable | 1 | Extinction at full density: how strongly the fog blocks light (the Volume material Extinction input). Raise for thick fog. |
| Albedo | colour, keyable | (0.9, 0.9, 0.9, 1) | Scattering colour (albedo): white fog scatters all light, darker colours absorb (smoke). Values above 1 are not physical. |
| Emissive | colour, keyable | black | Self-illumination colour (glowing gas, magic). Black = none. Scaled by the local density. |
| Emissive Intensity | >= 0 (slider to 50), keyable | 1 | Brightness of the emissive colour. |
Fog Noise Settings (FGradeFogNoiseSettings)
Procedural noise of the fog.
| Parameter | Values | Default | Description |
|---|---|---|---|
| Pattern | EGradeFogNoise, keyable | Perlin | Noise pattern. Cost grows from Value (cheapest) to Worley / Cloud (most expensive). |
| Size | vector (X, Y, Z), keyable | (400, 400, 250) | Size of the noise features in centimetres per axis (larger = broader shapes). |
| Octaves | 1..6, integer, keyable | 3 | Detail layers (octaves). More = finer detail and higher GPU cost. Reduced automatically with distance (Fade > Noise LOD Distance). |
| Contrast | >= 0 (slider to 6), keyable | 1 | Contrast of the noise around mid grey: higher = sharper gaps between clumps. 0 = flat. |
| Coverage | 0..1, keyable | 0.5 | How much of the volume is covered (0.5 = neutral; lower = sparse patches, higher = mostly solid). |
| Multiply | >= 0 (slider to 5), keyable | 1 | Multiplies the shaped noise (density boost of the clumps). |
| Panning Velocity | vector (X, Y, Z), keyable | (25, 8, 0) | Wind: how fast the noise moves, in centimetres per second (world axes, or the volume's axes in local space). |
| Rotation Speed | slider -180..180, keyable | 0 | Swirl: rotation of the noise around the volume's up axis, in degrees per second (vortices, magic). |
| Seed | integer | 0 | Offsets the noise so two identical volumes do not look the same. |
| Local Space | on/off, keyable | off | Off (default): the noise is fixed in the world, so overlapping volumes and spline puffs match and moving a volume reveals new fog. On: the noise moves, rotates and scales with the volume (a cloud you carry around). |
Fog Distortion Settings (FGradeFogDistortionSettings)
Domain distortion (turbulence) of the noise.
| Parameter | Values | Default | Description |
|---|---|---|---|
| Pattern | EGradeFogNoise, keyable | None (Uniform) | Pattern that bends the noise. None = off (no extra cost). Perlin / Value are the cheap choices. |
| Size | vector (X, Y, Z), keyable | (800, 800, 800) | Size of the distortion swirls in centimetres per axis. |
| Amount | >= 0 (slider to 1000), keyable | 0 | How far the noise is pushed, in centimetres. |
| Z Amount | 0..2, keyable | 0.5 | Vertical share of the distortion (0 = only horizontal, 1 = as strong as horizontal). |
| Speed | >= 0 (slider to 4), keyable | 0.3 | How fast the distortion evolves (multiplies time). |
Fog Surface Settings (FGradeFogSurfaceSettings)
Fog that clings to the surfaces of the level (global distance field).
| Parameter | Values | Default | Description |
|---|---|---|---|
| Cling To Surfaces | on/off, keyable | off | Keep the fog close to meshes and terrain (it hugs the ground, pools around rocks, follows walls). Uses the global mesh distance field: needs "Generate Mesh Distance Fields" in the project settings (Rendering) and meshes that affect distance field lighting. Uses the M_GRADE_FogVolume_DF variant of the material (a little more expensive). Large flat surfaces can show the coarse distance field steps: keep the height moderate there. |
| Height | >= 1 (slider to 2000), keyable | 150 | Height above surfaces in centimetres where the fog fades out. (Editable when Cling To Surfaces is on.) |
| Contrast | >= 0.1 (slider to 8), keyable | 1.5 | Contrast of the clinging (higher = a thinner, sharper layer right on the surfaces). (Editable when Cling To Surfaces is on.) |
Fog Lighting Settings (FGradeFogLightingSettings)
Self shadowing approximation (the engine's volumetric shadows from lights still apply on top).
| Parameter | Values | Default | Description |
|---|---|---|---|
| Self Shadow Amount | 0..1, keyable | 0.4 | Darkens the parts of the fog hidden behind denser fog (gives volume to clumps). 0 = off (saves one noise evaluation). |
| Self Shadow Contrast | >= 0.1 (slider to 4), keyable | 1 | Contrast of the self shadow (higher = only the densest parts shadow). |
| Self Shadow Distance | >= 1 (slider to 1000), keyable | 120 | How far towards the light the shadow probe looks, in centimetres (about the size of the clumps). |
| Self Shadow From Directional Light | on/off, keyable | on | Shadow towards the level's main directional light (sun); off = lit from above. |
Fog Fade Settings (FGradeFogFadeSettings)
Camera / character fades and distance level of detail.
| Parameter | Values | Default | Description |
|---|---|---|---|
| Near Fade Distance | >= 0 (slider to 5000), keyable | 150 | The fog fades in over this distance from the camera (cm): avoids flying through dense voxels (jitter / slicing). 0 = off. |
| Far Fade Distance | >= 0 (slider to 50000), keyable | 6000 | The fog fades out towards this distance from the camera (last quarter), in cm. 0 = never. The height fog's Volumetric Fog View Distance limits every volume anyway. |
| Affected By Character Fade | on/off, keyable | on | Clear the fog around the primary GRADE Fog Interactor (third person / top down: keeps the character visible). |
| Noise Lod Distance | >= 0 (slider to 20000), keyable | 4000 | Distance (cm) at which the noise drops to a single octave (cheaper far away). 0 = always full detail. |
Fog Interaction Settings (FGradeFogInteractionSettings)
Reaction to GRADE Fog Interactors (characters, physics objects, flashlights, projectiles).
| Parameter | Values | Default | Description |
|---|---|---|---|
| Allow Interaction | on/off, keyable | off | React to interactor spheres / cones (carving or adding fog). Off by default: adds shader instructions and lets the interaction system tick. Needs at least one GRADE Fog Interactor component in the level. |
| Strength | 0..1, keyable | 1 | Strength of the interaction on this volume. (Editable when Allow Interaction is on.) |
| Affected By Trails | on/off, keyable | on | Also react to the 2D trails drawn around the primary interactor (best on volumes that do not reach far above the ground). (Editable when Allow Interaction is on.) |
Fog Time Settings (FGradeFogTimeSettings)
Time source of the noise animation.
| Parameter | Values | Default | Description |
|---|---|---|---|
| Time Scale | >= 0 (slider to 4), keyable | 1 | Multiplies the animation speed (panning, rotation, distortion). 0 freezes the fog. |
| Use Custom Time | on/off, keyable | off | Drive the animation with Custom Time instead of the world time (scrub it in Sequencer for exact, repeatable renders). |
| Custom Time | number, keyable | 0 | Animation time in seconds when Use Custom Time is on (key it in Sequencer). (Editable when Use Custom Time is on.) |
Enumerations
Fog Shape (EGradeFogShape)
Footprint of a fog volume inside its box (Size x actor scale).
| Value | Meaning |
|---|---|
| Box | Fills the whole box. |
| Sphere | Sphere of the smallest half size, centred in the box. |
| Cylinder | Vertical cylinder (elliptical when X and Y differ), flat top and bottom. |
| Ellipsoid | Ellipsoid touching the six faces of the box (the usual "puff"). |
Fog Noise (EGradeFogNoise)
Procedural 3D noise patterns (evaluated in the shader, no textures). Indices are sent to the material: append only.
| Value | Meaning |
|---|---|
| None (Uniform) | No noise: uniform density (shaped only by the volume shape, height gradient and fades). |
| Value | Soft blobs (value noise). Cheapest. |
| Perlin | Smooth rolling fog (gradient noise). |
| Worley | Cellular puffs (inverted Worley F1). The most expensive pattern. |
| Cloud (Perlin-Worley) | Billowing cloud shapes: gradient noise eroded by cellular noise. |
| Billow | Fluffy, cauliflower-like (absolute gradient noise). |
| Ridged | Sharp ridges and veins (inverted absolute gradient noise). |
| Wisps | Thin, stretched streaks (domain-warped ridged noise): smoke wisps, blowing dust. |
Generated from the GRADE C++ headers. Back to the reference index.