Env ambient light: Difference between revisions
Jump to navigation
Jump to search
Note:The ambient term is completely flat, making this entity a poor replacement for static light.
(Created page with '{{base point multi|env_ambient_light|game1=Portal 2|game2=Alien Swarm}} == Entity description == left|link= An entity to control the color correcti…') |
(fixed) |
||
Line 1: | Line 1: | ||
{{base point | {{base point|env_ambient_light|since=Alien Swarm}} It adds a constant colour value to dark areas of the world without affecting brighter areas. It can be faded in and/or take effect only within a certain radius (meaning that brightness will increase as the camera draws closer, not that there will be a spatial effect). | ||
{{note|The ambient term is completely flat, making this entity a poor replacement for [[static light]].}} | |||
[[ | |||
== Keyvalues == | == Keyvalues == | ||
{{KV|Color (R G B)|color255|Ambient light color.}} | {{KV|Color (R G B)|color255|Ambient light color.}} | ||
{{KV SpatialEntity}} | |||
{{ScrollBox| | |||
{{KV EnableDisable}} | |||
{{KV Targetname}} | {{KV Targetname}} | ||
}} | |||
== Inputs == | == Inputs == | ||
{{IO|SetColor|Sets the color.|param=color255}} | {{IO|SetColor|Sets the color.|param=color255}} | ||
{{I SpatialEntity}} | |||
{{ScrollBox| | |||
{{I EnableDisable}} | |||
{{I Targetname}} | {{I Targetname}} | ||
}} | |||
== Outputs == | == Outputs == | ||
{{O Targetname}} | {{O Targetname}} |
Revision as of 05:47, 13 August 2011
Template:Base point It adds a constant colour value to dark areas of the world without affecting brighter areas. It can be faded in and/or take effect only within a certain radius (meaning that brightness will increase as the camera draws closer, not that there will be a spatial effect).

Keyvalues
SpatialEntity:
- Lookup Falloff Start Distance (minfalloff) <float>
- Within this range to the entity, the effect will be at full strength. If this is larger than the End Distance, the effect will apply to the entire map.
- Lookup Falloff End Distance (maxfalloff) <float>
- Maximum distance from the entity that the effect is applied. At this distance, the effect is barely apparent but will strengthen as the viewer approaches the Start Distance.
- Maximum Weight (maxweight) <float>
- This is the maximum weight for this lookup.[Clarify]
- Lookup Fade In Duration (fadeInDuration) <float>
- When the entity becomes
Enable
d, how long the effect takes to fade in.
- Lookup Fade out Duration (fadeOutDuration) <float>
- When the entity becomes
Disable
d, how long the effect takes to fade out.
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
- Start Disabled (StartDisabled) <boolean>
- Stay dormant until activated (with the
Enable
input).
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- SetColor <color255 >
- Sets the color.
SpatialEntity:
- SetFadeInDuration <float >
- Sets the Lookup Fade In Duration.
- SetFadeOutDuration <float >
- Sets the Lookup Fade out Duration.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.
EnableDisable:
- Enable / Disable
- Enable/disable this entity from performing its task. It might also disappear from view.