fog_volume
Jump to navigation
Jump to search
| CFogVolume |
fog_volume is a brush entity available in all
Source games since
Left 4 Dead. It's also in
Black Mesa,
Mapbase, and
Garry's Mod. It controls fog and other visual cinematic elements within its volume. It is necessary to have at least one fog_volume in order for (a master) color_correction to take effect in the ![]()
Left 4 Dead series.
- There is a Fog Panel in
Left 4 Dead 2 that allows in-game manipulation of fog parameters. It is loaded via console command fogui. This command exists in
Portal 2, but will not work unless resource/foguipanel.resis copied from another game. - Use
tools/toolsfogtexture for your fog volumes to distinguish them from triggers during level creation. - Mappers for games using
Source 2007 or
Source 2013 can create client-side fog-changing functionality in a multiplayer game using instead trigger_multiple. Place at least 2 env_fog_controller with different fog settings and one checked with Master flag. Use OnStartTouch > !activator > SetFogController > [name of env_fog_controller entity]. The input will appear as red, but it still works. UseOnEndTouch()to change the fog back.
Keyvalues
- Name (targetname) <string>
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentnameortarget).
Also displayed in Hammer's 2D views and Entity Report. - See also: Generic Keyvalues, Inputs and Outputs available to all entities
- Fog Name (FogName) <targetname>
- The name of the fog entity associated with this volume.
- Postprocess Name (PostProcessName) <targetname> (not in
) - The name of the postprocess_controller entity associated with this volume.
- ColorCorrection Name (ColorCorrectionName) <targetname>
- The name of the color_correction entity associated with this volume.
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enableinput).
Inputs
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
See also
External links
- L4D Art Direction, Part 1: Filmic Effects - Valve blog post regarding film effects in Left 4 Dead.
- Changing fog in multiplayer game with Source 2007 - Steam forum.
