ReadonlyidThe id of the light scene.
The collection of lights in the light scene.
ReadonlynodeThe node in which the lights are stored in the [scene tree]ITree.
OptionalnameThe name of the light scene.
Create an ambient light and add it to the light scene.
Optionalcolor?: ColorThe color of the light.
Optionalid?: stringThe id of the light.
Optionalintensity?: numberThe intensity of the light. (0-Infinity, default: 0.5)
Optionalname?: stringThe name of the light.
Create a directional light and add it to the light scene.
OptionalcastShadow?: booleanOption for the light to cast shadows.
Optionalcolor?: ColorThe color of the light.
Optionaldirection?: vec3The direction of the light.
Optionalid?: stringThe id of the light.
Optionalintensity?: numberThe intensity of the light. (0-Infinity, default: 0.5)
Optionalname?: stringThe name of the light.
OptionalshadowMapBias?: numberThe bias of the shadow map. For more info on the shadow bias, see here.
OptionalshadowMapResolution?: numberThe resolution of the shadow map. (default: 1024, has to be power of two)
Create an hemisphere light and add it to the light scene.
Optionalcolor?: ColorThe color of the light.
OptionalgroundColor?: ColorThe ground color of the light.
Optionalid?: stringThe id of the light.
Optionalintensity?: numberThe intensity of the light. (0-Infinity, default: 0.5)
Optionalname?: stringThe name of the light.
Create a point light and add it to the light scene.
Optionalcolor?: ColorThe color of the light.
Optionaldecay?: numberThe decay of the light.
Optionaldistance?: numberThe distance of the light.
Optionalid?: stringThe id of the light.
Optionalintensity?: numberThe intensity of the light. (0-Infinity, default: 0.5)
Optionalname?: stringThe name of the light.
Optionalposition?: vec3The position of the light.
Create a point light and add it to the light scene.
Optionalangle?: numberThe angle of the light.
Optionalcolor?: ColorThe color of the light.
Optionaldecay?: numberThe decay of the light.
Optionaldistance?: numberThe distance of the light.
Optionalid?: stringThe id of the light.
Optionalintensity?: numberThe intensity of the light. (0-Infinity, default: 0.5)
Optionalname?: stringThe name of the light.
Optionalpenumbra?: numberThe penumbra of the light.
Optionalposition?: vec3The position of the light.
Optionaltarget?: vec3The target of the light.
Remove a light from the light scene with the specified id.
The id of the light to remove.
The api for a light scene. A light scene is a collection of lights. Therefore multiple light scene can be used to switch between different lighting environments. It can be created by calling the createLightScene method.