Sunlight: Light Entity

Light Entity Suns
    _sun
    _color
    _diffuse
    _diffade
    light
    style

Related Topics


Light Entity Suns

One method of defining suns is by using normal light entities.


 
 
_sun  number

location: light entity    version: 3.00  
number: 1-9 default: none

Indicates that the properties of this light will be used to define the specified numbered sun. The sun will then use this light's values for (if present): _color, _diffade, _diffuse, light, and style. If this light is triggered, the sunlight will be set to the same trigger. The sun's direction is set by aiming this light using any of the spotlight aiming methods.

Note: the light entity itself will still cast light.

no example image example map
 

 
 
_color  r g b

location: light entity    version: 3.00  
r g b: standard rgb color default: sky surface color

If this light entity defines a _sun, that sun will use this light's RGB color. A value of 0 0 0 is special: it makes the sun use the sky textures' colors instead.

no example image example map
 

 
 
_diffuse  brightness

location: light entity    version: 3.00  
brightness: 0-sunlight brightness default: 0

Used only if this light entity defines a _sun. It sets the brightness of the diffused sunlight. This simulates the diffusion of light by atmospheric haze, creating a soft glow around the edges of sunlight shadows.

no example image example map
 

 
 
_diffade  scale

location: light entity    version: 3.00  
scale: 0-1 (bigger), > 1 (smaller) default: 1

Used only if this light entity defines a _sun. It scales how quickly the _diffuse sunlight fades out over distance. The default distance is about 64 units. Values less than 1 fade slower, increasing the distance. Values greater than 1 fade faster, decreasing the distance. For example: a value of .5 fades half as fast, covering twice the distance, or about 128 units.

Note: The quality of diffuse sunlight is dependant on patch size. Values greater than 1 may require a smaller -chopsky size to look good.

no example image example map
 

 
 
light  brightness

location: light entity    version: 3.00  
brightness: > 0 default: 200

If this light entity defines a _sun, that sun will use this light's brightness value. Sunlight is not affected by distance, only by the angle-of-incidence (angle it strikes surfaces).

no example image example map
 

 
 
style  lightstyle

location: light entity    version: 3.00  
style: standard lightstyle (0-31) default: 0

If this light entity defines a _sun, that sun will use this light's style.

Note: Remember only style 0 light bounces.

no example image example map
 

Related Topics

-chopsky

Sunlight: Worldspawn