sun_color

The color of sunlight, default (128,128,128).

ambient_color

The basic environment lighting of an entity outside the PRV range (such as an entity in an unlit level or with no ground below), default (64,64,64).

Range:

(0,0,0) .. (255,255,255).

Type:

COLOR* (BGR)

Remarks

Example:

level_load("mylevel.wmb");	// set sun_color and ambient_color from the map properties
...
vec_set(sun_color,vector(0,0,255)); // make sun light all red

See also:

sun_pos, sun_angle, sun_light, ambient, sky_color, screen_color, d3d_fogcolor, compatibility, lighting

► latest version online