blue
green
red
Color vector elements, gives the color for particles, for sky enties, or for
emitted
light by entities in combination with the lightrange
parameter. Can be also used to tint entities in combination with the LIGHT
flag.
Range:
0 .. 255 (default: 128)
Type:
var
Remarks
- In order to emit light, the lightrange
parameter has to be set to a nonzero value.
- The blue parameter can also be used as a color vector.
- For sky entities the color is multiplied
with the texture
color rather than added to it, so at 0 the sky entity becomes totally black.
This way the sky can seamlessly be darkened for day-night transitions.
Example:
action blink()
{
vec_set(my.blue,vector(255,255,255)); // white color
while(1)
{
my.lightrange = 200; // lightsphere 200 quants
wait(-1); // wait one second
my.lightrange = 0; // no light
wait(-1); // wait one second
}
}
See also:
d3d_lightres, spotlight,
LIGHT, material,
lightrange
► latest
version online