Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

🌫️How to set up fog

Add a Fog Node so distant objects fade into haze. This is scene-wide fog: it is not a cloud you place in the world. Position in the Outliner does not matter. If you add a second Fog Node, it replaces the first.

Some projects also place painted fog cards. Those are a different object. This page is the Fog Node.

1

Open the Add menu

Select the plus button in the Outliner to open the menu for adding content to the scene.

2

Add a Fog Node

Choose Component, find Fog Node, and select it. Its settings appear in the Inspector.

NOTE: New fog is mid-grey and starts close to the camera, so the view can look fully grey. Raise Fog Far or change Fog Color until you can see the scene again.

3

Choose the fog mode

Open Fog Mode.

  • Linear — fog starts at Fog Near and is full at Fog Far. Use this when you want a clear distance.

  • Exponential — fog fills the whole view by density. Use this for even haze.

Those are the only two modes.

4

Set the fog colour

Adjust Fog Color so the haze matches the lighting: grey for natural mist, a tint for night or stylized light.

5

Set the linear fog distance

If Fog Mode is Linear, Fog Near is where fade begins and Fog Far is where it is strongest.

TIP: If the fade looks like a hard wall, increase the gap between Fog Near and Fog Far.

6

Adjust the fog density

If Fog Mode is Exponential, Fog Density controls thickness. Lower it for a light haze. Raise it for thicker fog. Change it in small steps while watching the viewport. Near and Far do not apply in this mode.

7

Test and reset the effect

Enter Play mode and check the fog from the gameplay camera. Use the reset arrow beside a value to restore its default.

TIP: Agents: the class is ENGINE.FogNode. Fields are fogMode (linear / exponential), fogColor, fogNear, fogFar, fogDensity (0–1).

What You've Done

The scene fades with distance or density, in a colour that matches the lighting. Next: How to set up a light.

Last updated

Was this helpful?