Color correction (entity)

From Valve Developer Community
Revision as of 18:40, 21 November 2011 by LL2Ste4m (talk | contribs) (→‎Outputs: fix)
Jump to navigation Jump to search

Template:Base point It loads a color correction lookup table (.raw) and controls its strength. Correction is applied in a sphere surrounding the entity, with a configurable amount of falloff. By default the effect fades in gradually and only reaches peak intensity at the entity's exact location.

Left 4 Dead seriesLeft 4 Dead series In Left 4 Dead and Left 4 Dead 2, this entity will behave like color_correction in previous Source-based games if there is at least one fog_volume brush entity textured with the fogvolume material. The flags "Master" and "Simulate client-side" must be checked in the main color_correction entity. There can only be one master color_correction. It is recommended that the other color_correction entities be triggered with fog_volume with an override of the master. The override is done by setting the fog_volume entity property called ColorCorrection Name to a color_correction targetname of your choice.

Icon-Bug.pngBug:In Team Fortress 2, color_correction causes control point HUD icons to display improperly. (example).  [todo tested in ?]

Keyvalues

Lookup Falloff Start Distance <float>
Lookup Falloff End Distance <float>
Distance from the entity at which the effect should begin and end fading out.
Maximum Weight <normal>
The intensity of the effect before falloff.
Lookup Table Filename <path\file>
The path and filename of the lookup table to load. Starts in the game root and should include file extension.
Lookup Fade In Duration <float>
Lookup Fade out Duration <float>
How fast the effect should fade in/out when the entity is enabled/disabled.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Start Disabled (StartDisabled) <boolean>
Stay dormant until activated (with theEnableinput).

Inputs

filename  !FGD
change the Lookup Table filename

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Flags

  • 1 : Master (Default color correction when used with L4D fog_volume)
  • 2 : Simulate client-side (Must be set when used with L4D fog_volume) Template:L4D add

See also