# Set Fog Density

Grammar — Set fog’s density to density
FlagsNative | Action

Sets the density of environmental fog. A higher value means thicker fog.

# Arguments

  • fixed — Density

Returns — void

native void FogSetDensity(fixed d);

Category: Environment / Fog And Background

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L19954
FogSetDensity(0.017)
// L1103
FogSetDensity(0.2)
// L7547
FogSetDensity(0.7)
// L19954
FogSetDensity(0.017)
// L1103
FogSetDensity(0.2)
// L7547
FogSetDensity(0.7)
// L1353
FogSetDensity(0.1)
// L12158
FogSetDensity(0.07)
// L12359
FogSetDensity(0.07)
// L443
FogSetDensity(0.0035)
// L358
FogSetDensity(0.008)
// L366
FogSetDensity(0.01)
// L1353
FogSetDensity(0.1)
// L12158
FogSetDensity(0.07)
// L12359
FogSetDensity(0.07)
// L443
FogSetDensity(0.0035)
// L358
FogSetDensity(0.008)
// L366
FogSetDensity(0.01)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L7532
FogSetDensity(0.03)
// L8828
FogSetDensity(0.03)

# campaigns/void.sc2campaign

MapScript.galaxy

// L376
FogSetDensity(0.06)
// L469
FogSetDensity(0.06)
// L530
FogSetDensity(0.35)
// L376
FogSetDensity(0.06)
// L469
FogSetDensity(0.06)
// L530
FogSetDensity(0.35)