Fog Commands

Below is a searchable list of all fog console commands from Counter-Strike: Global Offensive. Commands in this category can be used to set your client and map fog settings.

How to Use CS:GO & CS2 Commands
  1. Enable the developer console:

    Go to Settings > Game Settings and set "Enable Developer Console" to "Yes".

  2. Press ` or ~ on your keyboard.

  3. Enter a command and hit ENTER on your keyboard to run it!

Are you still stuck? More Help

Commands List

fog_color <R> <G> <B>

This command sets the color of fog, if enabled. The value provided should be an RGB value (separated by spaces).

Name Description
R

The red value of your desired RGB color code.

G

The green value of your desired RGB color code.

B

The blue value of your desired RGB color code.

Examples, Generator & More
fog_colorskybox <R> <G> <B>

This command sets the color of the fog skybox, if fog is enabled. An RGB value separated with spaces should be provided.

Name Description
R

The red value of your desired RGB color code.

G

The green value of your desired RGB color code.

B

The blue value of your desired RGB color code.

Examples, Generator & More
fog_enable <0 / 1>

This command enables fog if set to 1. Note that you will need to set fog_override to 1 if your map's settings disable fog.

Name Description
0 / 1

Enter 0 to disable fog. Enter 1 to enable fog (default). You will need to override your map's fog settings with fog_override 1.

Examples, Generator & More
fog_enable_water_fog <0 / 1>

This command enables water fog if set to 1. If set to 0, water fog will be disabled. Note that you need to override your map's fog settings with fog_override 1.

Name Description
0 / 1

Enter 0 to disable water fog. Enter 1 to enable water fog (default).

Examples, Generator & More
fog_enableskybox <0 / 1>

This command will enable (1, default) whether or not fog should be applied to the skybox.

Name Description
0 / 1

Enter 0 to disable the fog skybox. Enter 1 to enable the fog skybox (default).

Examples, Generator & More
fog_end <Distance>

This command will set the "end" of the fog in relation to your player. Higher numbers will make the fog more distant. -1 will set to default. Fog will be shown in the distance between fog_start's value and this value.

Name Description
Distance

The distance from your player at which the fog will stop being rendered (e.g. 1000). Fog will be rendered in the distance between this value and the fog_start value.

Examples, Generator & More
fog_endskybox <Distance>

This command will set how far you can see into the sky before fog appears.

Name Description
Distance

The distance from your player at which the skybox fog will stop being rendered (e.g. 1000). Fog will be rendered in the distance between this value and the fog_start value.

Examples, Generator & More
fog_hdrcolorscale <Scale>

This command sets the fog's HDR color scale. Specify a decimal value between 0 and 1.

Name Description
Scale

The color scale for the HDR. 0.5 = 50%, 1 = 100%.

Examples, Generator & More
fog_hdrcolorscaleskybox <Scale>

This command sets the fog's skybox HDR color scale. Specify a decimal value between 0 and 1.

Name Description
Scale

The color scale for the skybox's HDR. 0.5 = 50%, 1 = 100%.

Examples, Generator & More
fog_maxdensity <Density>

This command sets the maximum density of the fog, given as a decimal percentage. 0.5 would be 50% transparency, 1 would be completely opaque.

Name Description
Density

The maximum density of the fog. 1 would be completely opaque, 0.5 would be 50% transparency.

Examples, Generator & More
fog_maxdensityskybox <Density>

This command sets the maximum density of the fog, given as a decimal percentage. 0.5 would be 50% transparency, 1 would be completely opaque.

Name Description
Density

The maximum density of the skybox fog. 1 would be completely opaque, 0.5 would be 50% transparency.

Examples, Generator & More
fog_override <0 / 1>

This command will allow you to override the fog settings of the map if set to 1. Default is 0 (meaning you will by default use the map's fog settings).

Name Description
0 / 1

Enter 0 (default) to NOT override the map's fog settings. Enter 1 to override the map's fog settings.

Examples, Generator & More
fog_start <Distance>

This command sets the distance from the player at which the fog will start being rendered.

Name Description
Distance

The distance from your player at which the fog will start.

Examples, Generator & More
fog_startskybox <Distance>

This command sets the distance from the player at which the skybox fog will start.

Name Description
Distance

The distance from your player at which the skybox fog will start.

Examples, Generator & More
fogui

This command will toggle the visibility of the fog control GUI.

Examples, Generator & More
csm_cascade2_override_dist <Distance>

This command is used to override the distance at which the Cascade Shadow Mapping 2.0 system operates, primarily a developer tool used for testing and optimizing shadow rendering.

Name Description
Distance

The distance in units to override the default shadow mapping. -1 disables override.

Examples, Generator & More
fog_override_color <Red> <Green> <Blue>

This command allows the user to set a custom fog color override, useful for developers or during custom game modes that require specific visual conditions.

Name Description
Red

The red color value.

Green

The green color value.

Blue

The blue color value.

Examples, Generator & More
fog_override_enable <0 / 1>

This command enables or disables the usage of fog_override console variables instead of the default world fog data specified by the current map.

Name Description
0 / 1

This argument enables or disables the fog override feature.

Examples, Generator & More
fog_override_end <End Distance>

This command sets the distance at which the fog override ends, changing how far away from the player fog becomes fully opaque.

Name Description
End Distance

The distance at which the fog becomes fully opaque.

Examples, Generator & More
fog_override_exponent <Exponent>

This command adjusts the intensity and brightness of the fog within the game when fog override is enabled.

Name Description
Exponent

Determines the intensity and brightness of the fog. A lower number means the fog is less dense, while a higher number makes the fog denser.

Examples, Generator & More
fog_override_max_density <Density value>

Overrides the maximum density of the fog present in the game. This command can be used to increase or decrease the visibility of the fog, making it thicker or clearer.

Name Description
Density value

The maximum density of the fog.

Examples, Generator & More
fog_override_start <Distance>

This command adjusts the start distance for fog overriding, effectively setting how close the player needs to be to an object before fog starts affecting its visibility.

Name Description
Distance

The distance in game units at which the fog starts affecting visibility.

Examples, Generator & More
lb_show_light_fog_clipmap_cb_cost <0 / 1>

Shows the cost of lights in the fog clipmap constant buffer, with yellow indicating a cost of 1 and red indicating a cost of 6. This is used for debugging and optimization purposes.

Name Description
0 / 1

Toggles the display of light cost in fog clipmap constant buffer.

Examples, Generator & More
mat_tonemap_force_average_lum_min <Minimum average luminance>

Forces the minimum average luminance for tonemapping. A value of -1 disables this override.

Name Description
Minimum average luminance

The minimum average luminance level for tonemapping. Use -1 to disable.

Examples, Generator & More
mat_tonemap_force_log_lum_max <Maximum luminance>

This command set the maximum luminance for tonemapping, which affects how bright scenes appear when HDR is utilized. A value of -1 returns it to the default behavior.

Name Description
Maximum luminance

The maximum luminance value for tonemapping, controlling the brightness of scenes.

Examples, Generator & More
mat_tonemap_force_max <Maximum value>

Forces the maximum tonemap value to the specified number. A value of -1 returns it to default behavior.

Name Description
Maximum value

The desired maximum tonemap value. A value of -1 resets to default.

Examples, Generator & More
mat_tonemap_force_percent_target <Target Percent>

This command is used to override the default value that controls the tonemap percent target, historically set to 45. It is a cheat command, meaning it can only be used when cheats are enabled.

Name Description
Target Percent

The target percentage for the tonemap force. -1 resets to default.

Examples, Generator & More
r_dof_override_near_blurry <Distance>

This command adjusts the depth of field to make objects closer than a specified distance appear blurry.

Name Description
Distance

The threshold distance at which objects start appearing blurry. Negative values make objects closer than the set distance blurry.

Examples, Generator & More
sc_fade_distance_scale_override <Scale Override>

Overrides the scale at which sunlight shadow fades with distance. The default value of -1 means no override is applied.

Name Description
Scale Override

The scale at which sunlight shadows fade with distance. A value of -1 means no override.

Examples, Generator & More
volume_fog_clipmap_update <0 / 1>

Determines if the volume fog's clipmap should be updated. This command is useful for developers or for debugging purposes.

Name Description
0 / 1

Determines whether the volume fog's clipmap should be updated or not.

Examples, Generator & More
volume_fog_clipmaps_enabled <0 / 1>

This command, when enabled, allows the game to utilize volumetric fog, which enhances environmental visual effects.

Name Description
0 / 1

This argument enables or disables the use of volumetric fog.

Examples, Generator & More
volume_fog_disable <0 / 1>

This command disables or enables volumetric fog in the game. Volumetric fog adds to the visual depth and atmosphere but may impact performance.

Name Description
0 / 1

Sets the volumetric fog to disabled or enabled.

Examples, Generator & More
volume_fog_dither_scale <Dither Scale>

Adjusts the scale of dithering in volumetric fog rendering. It changes the visual quality and potential performance impact of fog.

Name Description
Dither Scale

The intensity of the dither effect in the volumetric fog.

Examples, Generator & More
volume_fog_enable_jitter <0 / 1>

Enables or disables jitter in volume fog rendering, likely creating a more realistic or unstable fog appearance depending on the setting.

Name Description
0 / 1

Enable or Disable jitter in volume fog rendering.

Examples, Generator & More
volume_fog_enable_stereo <0 / 1>

Enables or disables stereo rendering for volumetric fog.

Name Description
0 / 1

Enables or disables the feature.

Examples, Generator & More
volume_fog_enlarge_frusta <Enlarge frusta value>

This command modifies how the game engine calculates fog volume, specifically affecting the enlargement of frusta (plural of frustum, which are the visible volumes of space in 3D rendering).

Name Description
Enlarge frusta value

The numerical value to set for the enlargement of frusta in volume fog calculation, affecting visual quality and performance.

Examples, Generator & More
volume_fog_show_volumes <0 / 1>

Toggles the visibility of volume fog boundaries for debugging and editing purposes in the game environment.

Name Description
0 / 1

A flag to enable or disable the visibility of volume fog boundaries.

Examples, Generator & More