Template:KV Light: Difference between revisions
Jump to navigation
Jump to search
m (Robot: fixing template case.) |
TomEdwards (talk | contribs) (some cleanup (but still messy)) |
||
Line 1: | Line 1: | ||
;_light | ; _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> | |||
; style | : {{note|Applies only to lights with a [[targetname]].}} | ||
: Various pattern pre-sets (see next item). | |||
:{| | ; pattern <[[string]]> | ||
:{{note|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-Linear-Quadratic Falloff|_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 [[Constant-Linear-Quadratic Falloff|here]].) | |||
; [[Constant-Linear-Quadratic Falloff|_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 [[Constant-Linear-Quadratic Falloff|here]].) | |||
; [[Constant-Linear-Quadratic Falloff|_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 [[Constant-Linear-Quadratic Falloff|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 <code>-1 -1 -1 1</code>, which tells the compiler to inherit from <code>_light</code>. | |||
:{{note|Applies only to | |||
: | |||
; [[Constant-Linear-Quadratic Falloff|_constant_attn]] | |||
; [[Constant-Linear-Quadratic Falloff|_linear_attn]] | |||
; [[Constant-Linear-Quadratic Falloff|_quadratic_attn]] | |||
; _distance | |||
; | |||
: | |||
:{{warning|The final digit in the default string is positive. Entering four negative numbers will suck the light out of your entire map!}} | :{{warning|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. | :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. | :Distance at which brightness should fall off to negligible (1/256)%. Must set _fifty_percent_distance to use. |
Revision as of 12:14, 25 June 2009
- _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:Applies only to lights with a targetname.
- Various pattern pre-sets (see next item).
- pattern <string>
Note: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: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.