Skip to main content

color_correction_volume

color_correction_volume icon
Brush entity

A color_correction_volume changes the colors of the 3D view while the player's view is inside its brush, like the entity of the same name in Source games. The look fades in as the view enters the brush and fades out as it leaves, and it has the same look keys as a color_correction.

A test room seen from outside a toxic color correction volume and from inside it

A color correction volume seen from outside and from inside

The volume uses the real shape of the brush, not only the box around it. The brush is never drawn and never blocks anything, so you can give it any texture, such as AAATRIGGER.

Attributes​

KeyDescriptionDefault
Nametargetname

Triggering the entity turns the look on or off, as the use type says. See Common keys.

Mastermaster

Names a master, and while the master is off, the look is off too.

Start DisabledStartDisabled

Sets whether the look is on when the map starts. A trigger turns it on or off by its use type: On turns it on, Off turns it off and Toggle switches it.

  • No (0) - The look is on from the start
  • Yes (1) - The look is off until you trigger it
Default No (0)
Lookup Table Filefilename

Names a color lookup table file that changes the colors of the view. It must be a .raw file in the Source format (32 by 32 by 32), which you can make with the in-game editor. A name without a folder, such as tealorange.raw, is looked for in gfx/colorcorrection/, and players download the file with the map. The game applies the simple keys below after the file, and you can't change the file while the map runs.

Maximum Weightmaxweight

Sets how strong the look is at full strength, from 0 for no change up to 1 for the full look. So 0.5 is halfway between the normal picture and the look.

Default 1
Exclusiveexclusive

Sets whether this look pushes the other color corrections back while it is on.

  • No (0) - The look mixes with the others
  • Yes (1) - The look takes its share from every other color correction, so the others fade under it
Default No (0)
Saturationsaturation

Sets how strong the colors are: 1 is normal, 0 is black and white, and a value above 1 makes the colors stronger.

Default 1
Contrastcontrast

Sets the contrast, where 1 is normal. A value above 1 makes dark parts darker and bright parts brighter, and a value below 1 makes the picture flatter.

Default 1
Brightnessbrightness

Adds this much to every color: 0 is normal, 0.1 makes the picture brighter and -0.1 makes it darker.

Default 0
Gammagamma

Changes the middle tones: 1 is normal, a value above 1 makes them brighter and a value below 1 makes them darker.

Default 1
Tint Colortintcolor

Sets a color the picture is multiplied by, as strongly as Tint Amount says, so 255 200 140 gives sepia.

Default 255 255 255
Tint Amounttintamount

Sets how strong the tint is, from 0 for no tint up to 1 for the full Tint Color.

Default 0
Fade TimefadeDuration

Sets how many seconds the look takes to fade in when the view enters the brush, and to fade out when it leaves. The same time is used when you turn the look on or off.

Default 1

Notes​

  • The volume's look mixes with other color corrections. See How the looks mix for more details
  • Players can turn color correction off by typing mat_colorcorrection 0 in the console. See Settings for more details

See also​

Changes since 1.38​

  • color_correction_volume is new in SBO 2.1.0