Template:KV Light

From Valve Developer Community
Revision as of 12:14, 25 June 2009 by TomEdwards (talk | contribs) (some cleanup (but still messy))
Jump to navigation Jump to search
_light <color255 + int>
The color and brightness of the light. RGB colors need to be between 0 and 255. Brightness can be higher.
style <choices>
Note.pngNote:Applies only to lights with a targetname.
Various pattern pre-sets (see next item).
pattern <string>
Note.pngNote:Applies only to lights with a targetname.
A string of characters, like a sequence of piano keys, that define a pattern of brightness. a is dark and z is full intensity.
_constant_attn <float>
Influences the light spread to be more constant, by dimming near the source and brightening at the edges. Used in equation with Linear and Quadratic. (Learn more about constant, linear and quadratic attenuation here.)
_linear_attn <float>
Influences the light spread to decrease at a fixed rate. Used in equation with Constant and Quadratic. (Learn more about constant, linear and quadratic attenuation here.)
_quadratic_attn <float>
Influences the light spread to decrease exponentially, i.e. faster as one moves away from the source. Used in equation with Constant and Linear. (Learn more about constant, linear and quadratic attenuation here.)
_distance <integer>
Stops the light emitted from reaching beyond this distance. Useful in cutting down compiling time by not making lights extend infinitely.
_lightHDR <color255>
BrightnessHDR. Defaults to -1 -1 -1 1, which tells the compiler to inherit from _light.
Warning.pngWarning:The final digit in the default string is positive. Entering four negative numbers will suck the light out of your entire map!
_fifty_percent_distance <float>
50 percent falloff distance
Distance at which brightness should fall off to 50%. If set, overrides the Linear, Constant and Quadratic parameters.
_zero_percent_distance <float>
0% falloff distance
Distance at which brightness should fall off to negligible (1/256)%. Must set _fifty_percent_distance to use.