Changes the fog smoothly over a given time period.
A fog density of 0 means no fog at all, allowing maximum view distance (which might be limited by the respective setVideoSetting). A density of 1 is maximum fog, which gives a visibility of about 125m at ground level.
Another graph, showing just the relationship between fog density and view distance (at ground level) is available here:
|Syntax:||time setFog density|
|Syntax:||time setFog [density,decay,altitude] (V2.05+)|
15 setFog 0.5;
10 setFog [0.5, 0.002, 100];
|See also:||setFogEffect, fog, fog2, fogForecast, fogForecast2, nextWeatherChange|
|Multiplayer:||Effect is not map-wide, but only around the player the command is issued from (other players who come close to this player, see the fog effect as well). For fully local fog, use setFogEffect.|