Math colorblend
From Valve Developer Community
This point-based entity is available in all Source games.
| Table of contents |
[edit]
Entity description
Used to create a blend between two colors for controlling the color of another entity.
- The following entities can accept color255 inputs: env_sun, env_lightglow, env_beam, env_fog_controller, env_sprite, light_dynamic, shadow_control, as well as any entity which uses rendercolor.
[edit]
Keyvalues
- targetname <target_source>
- Defines the name that other entities refer to this entity by.
- hammerid [Episode Two Update]
- <integer readonly> This id is used for debugging purposes in Hammer.
- inmin
- <integer> Input values below this value will be ignored.
- inmax
- <integer> Input values above this value will be ignored.
- colormin
- <color255> When the input value is equal to 'Minimum Valid Input Value', this is the output RGB color.
- colormax
- <color255> When the input value is equal to 'Maximum Valid Input Value', this is the output RGB color.
[edit]
Flags
- 1: Ignore out-of-range input values
[edit]
Inputs
- Kill
- Removes this entity from the world.
- Removes this entity and all its children from the world.
- AddOutput <string>
- Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
- Format:
<key> <value> - Format:
<output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire (-1 == infinite)>
- Causes this entity's OnUser1-4 outputs to be fired. See User Inputs and Outputs.
- InValue <float> Input value and fire the output with the remapped value.
[edit]
Outputs
- Fired in response to FireUser1-4 inputs. See User Inputs and Outputs.
- !activator = activator
- OutColor <color255> Fired when the InValue input is received, with the remapped RGB color as the parameter.
