Template:KV Light: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
TomEdwards (talk | contribs) (L C and Q. Converted to DL.) |
||
Line 1: | Line 1: | ||
;_light | |||
: <[[color255]] & integer> The color and brightness of the light. RGB colors need to be between 0 and 255. Brightness can be higher. | : <[[color255]] & integer> The color and brightness of the light. RGB colors need to be between 0 and 255. Brightness can be higher. | ||
;style | |||
:<choices> A preset pattern of diverse flicker effects. | |||
: <choices> A preset pattern of diverse flicker effects. | |||
:{| | :{| | ||
! Literal Value || Description | ! Literal Value || Description | ||
Line 31: | Line 30: | ||
| 11 || Slow pulse, noblack | | 11 || Slow pulse, noblack | ||
|} | |} | ||
:{{note|Applies only to light entities with | :{{note|Applies only to light entities with a [[targetname]].}} | ||
;pattern | |||
: <string> A string of characters defining a custom pattern, '''a''' being most dark and '''z''' being most bright. Think of it as a sequence of Piano keys. | |||
: <string> A string of characters defining a custom pattern, '''a''' being most dark and '''z''' being most bright. | :{{note|Applies only to light entities with a [[targetname]].}} | ||
:{{note|Applies only to light entities with | ;_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. | |||
;_linear_attn | |||
: <float> | :<float> Influences the light spread to decrease at a fixed rate. Used in equation with Constant and Quadratic. | ||
;_quadratic_attn | |||
:<float> Influences the light spread to decrease logarithmically, i.e. faster as one moves away from the source. Used in equation with Constant and Linear. | |||
: <float> | ;_distance | ||
:<integer> Stops the light emitted from reaching beyond this distance. Useful in cutting down compiling time by not making lights extend infinitely. | |||
;{{ep1 add|_lightHDR}} | |||
: <float> | :{{color}} BrightnessHDR. Defaults to <code>-1 -1 -1 1</code>, which tells the compiler to inherit from <code>_light</code>. | ||
:{{warning|The final digit in the default string is positive. Entering four negative numbers will suck the light out of your entire map!}} | |||
: <integer> Stops the light emitted from reaching beyond this distance. Useful in cutting down compiling time by not making lights extend infinitely. | ;{{ep1 add|_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. | |||
: {{color}} BrightnessHDR | ;{{ep1 add|_zero_percent_distance}} | ||
:<float> 0 percent falloff distance | |||
:Distance at which brightness should fall off to negligible (1/256)%. Must set _fifty_percent_distance to use. | |||
: <float> 50 percent falloff distance | |||
: Distance at which brightness should fall off to 50%. If set, overrides | |||
: <float> 0 percent falloff distance | |||
: Distance at which brightness should fall off to negligible (1/256)%. Must set _fifty_percent_distance to use. |
Revision as of 06:48, 27 July 2007
- _light
- <color255 & integer> The color and brightness of the light. RGB colors need to be between 0 and 255. Brightness can be higher.
- style
- <choices> A preset pattern of diverse flicker effects.
Literal Value Description 0 Normal 1 Flicker A 2 Slow, strong pulse 3 Candle A 4 Fast strobe 5 Gentle pulse 6 Flicker B 7 Candle B 8 Candle C 9 Slow strobe 10 Fluorescent flicker 11 Slow pulse, noblack
Note:Applies only to light entities with a targetname.
- pattern
- <string> A string of characters defining a custom pattern, a being most dark and z being most bright. Think of it as a sequence of Piano keys.
Note:Applies only to light entities with a targetname.
- _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.
- _linear_attn
- <float> Influences the light spread to decrease at a fixed rate. Used in equation with Constant and Quadratic.
- _quadratic_attn
- <float> Influences the light spread to decrease logarithmically, i.e. faster as one moves away from the source. Used in equation with Constant and Linear.
- _distance
- <integer> Stops the light emitted from reaching beyond this distance. Useful in cutting down compiling time by not making lights extend infinitely.
- Template:Ep1 add
- ⇆#000000rgb(0,0,0)⇆ 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!
- Template:Ep1 add
- <float> 50 percent falloff distance
- Distance at which brightness should fall off to 50%. If set, overrides the Linear, Constant and Quadratic parameters.
- Template:Ep1 add
- <float> 0 percent falloff distance
- Distance at which brightness should fall off to negligible (1/256)%. Must set _fifty_percent_distance to use.