# Fog

<p class="callout info">Fog is currently only available for the Pragma renderer. To get a similar effect with Cycles/LuxCoreRender, see [Volumetric Lighting](https://wiki.pragma-engine.com/books/pragma-filmmaker/page/volumetric-lighting).</p>

[![fog_comparison.png](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/scaled-1680-/fog-comparison.png)](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/fog-comparison.png)

To add fog to your scene, click the [![create_actor_button.png](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/scaled-1680-/pragma-2022-07-17-12-59-15.png)](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/pragma-2022-07-17-12-59-15.png)-button in the actor editor and select `New fog controller`. If the option is not available, you probably already have a fog controller actor in your scene (only one is allowed).

[![new_fog_controller.png](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/scaled-1680-/pragma-2022-07-23-11-08-24.png)](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/pragma-2022-07-23-11-08-24.png)

Now select the `fog_controller` from the component list of the new actor, and you will see a number of fog options appearing on the right:

- **start**: Start distance of the fog in game units, only has an effect if the fog type is `Linear`.
- **end**: End distance of the fog in game units, only has an effect if the fog type is `Linear`.
- **density**: How dense the fog should be. The meaning of the value is dependent on the fog type.
- **type**: The type of fog. Exponential fog creates more realistic results.

<p class="callout warning">When using the exponential fog, the `density` value should be **very** low (&lt; 0.01). The default range of the slider is significantly higher than that, so you may want to remap the range by right-clicking the property and choosing `Remap Slider Range`:  
[![remap_slider_range.png](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/scaled-1680-/pragma-2022-07-22-10-54-30.png)](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/pragma-2022-07-22-10-54-30.png)[ ![slider_range.png](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/scaled-1680-/pragma-2022-07-22-10-55-49.png)](https://wiki.pragma-engine.com/uploads/images/gallery/2022-07/pragma-2022-07-22-10-55-49.png)</p>

The fog color can be changed via the `color` component of the same actor.