---
name: "Arma 3: Improved Fog"
type: topic
aliases: ["Arma 3 Improved Fog"]
source: https://community.bistudio.com/wiki/Arma_3:_Improved_Fog
revid: 347057
updated: 2023-08-28T23:00:26Z
---

# Arma 3: Improved Fog

Main improvements are:

- fog density now decays with altitude
- skybox and clouds are colored by fog

### Computation

Most important values in computation:

- **fogBase** - base altitude for fog (in meters)
- **beta0** - macroscopic cross-section of atmospheric scatterers at base altitude - determines density of fog based on distance from viewer at base altitude
- **fogDecay** - how much the fog density decays with altitude. 0 = constant density, 0.0049333 = density halves every 500m

### Config

In world config following values can be configured:

```cpp
startFogBase = 0.0;            // base altitude for fog computations (in meters)
forecastFogBase = 0.0;
startFogDecay = 0.005;        // decay coefficient - decay of fog with altitude
forecastFogDecay = 0.005;
fogBeta0Min = 0.0001;        // beta0 (macroscopic cross-section of atmospheric scatterers at base level) for fog value 0
fogBeta0Max = 0.02;            // beta0 (macroscopic cross-section of atmospheric scatterers at base level) for fog value 1
```

### Script commands

Command [setFog](../commands/setFog.md) was extended - now can be used with some optional params.

<sub>Source: [BI Community Wiki — Arma 3: Improved Fog](https://community.bistudio.com/wiki/Arma_3:_Improved_Fog) (revision 347057).</sub>
