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.
No edit summary |
(updates) |
||
Line 1: | Line 1: | ||
{{base point|env_ambient_light|since=Alien Swarm}} | {{base point|env_ambient_light|since=Alien Swarm}} This entity adds a constant color 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 brightness will increase as the viewer draws closer to the entity, not that there will be a spatial effect). | ||
This | |||
{{note|The ambient term is completely flat, making this entity a poor replacement for [[static light]].}} | {{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) (Color)|color255|Ambient light color.}} | ||
{{KV SpatialEntity}} | {{KV SpatialEntity}} | ||
{{KV BaseEntity}} | |||
{{KV | |||
}} | |||
== Inputs == | ==Inputs== | ||
{{IO|SetColor|Sets the color. | {{IO|SetColor|param=color255|Sets the color.}} | ||
{{I SpatialEntity}} | {{I SpatialEntity}} | ||
{{I BaseEntity}} | |||
{{I | |||
}} | |||
== Outputs == | ==Outputs== | ||
{{O | {{O BaseEntity}} |
Revision as of 06:08, 22 September 2018
Template:Base point This entity adds a constant color 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 brightness will increase as the viewer draws closer to the entity, 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).
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.