Home

LightDefinition

Specifies a light source. This is loaded either as a single light source or as an array of light sources.

Type

struct | Array<struct>

Properties

type

picture

Only loaded, and mandatory if type is "oriented".

rotation_shift

Only loaded if type is "oriented".

intensity

Brightness of the light in the range [0, 1], where 0 is no light and 1 is the maximum light.

size

The radius of the light in tiles. Note that the light gets darker near the edges, so the effective size of the light will appear to be smaller.

source_orientation_offset

add_perspective

flicker_interval

flicker_min_modifier

flicker_max_modifier

offset_flicker

Offsets tick used to calculate flicker by position hash. Useful to desynchronize flickering of multiple stationary lights.

shift

color

Color of the light.

minimum_darkness