Optional
lightsArray of available lights.
Optional
name?: stringName of the light. Default to ''
.
Optional
color?: [number, number, number]RGB value for the light's color in linear space. Default to [1, 1, 1]
.
Optional
intensity?: numberBrightness of the light. The units that this is defined in depend on the type of light. point
and spot
lights use luminous intensity in candela (lm/sr) while directional
lights use illuminance in lux (lm/m2). Default to 1
.
Declares the type of the light.
Optional
range?: numberHint defining a distance cutoff at which the light's intensity may be considered to have reached zero. Supported only for point
and spot
lights. Must be > 0. When undefined, range is assumed to be infinite.
Optional
spot?: { innerConeAngle?: number; outerConeAngle?: number }When a light's type is spot
, this property on the light is required.
Optional
innerConeAngle?: numberAngle, in radians, from centre of spotlight where falloff begins. Must be greater than or equal to 0
and less than outerConeAngle
. Default to 0
.
Optional
outerConeAngle?: numberAngle, in radians, from centre of spotlight where falloff ends. Must be greater than innerConeAngle
and less than or equal to PI / 2.0
. Default to PI / 4.0
.
Define the
KHR_lights_punctual
extension top level options.