OptionallightsArray of available lights.
Optionalname?: stringName of the light. Default to ''.
Optionalcolor?: [number, number, number]RGB value for the light's color in linear space. Default to [1, 1, 1].
Optionalintensity?: 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.
Optionalrange?: 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.
Optionalspot?: { innerConeAngle?: number; outerConeAngle?: number }When a light's type is spot, this property on the light is required.
OptionalinnerConeAngle?: 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.
OptionalouterConeAngle?: 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_punctualextension top level options.