Gets the cast shadows flag of the light.
The cast shadows flag.
Sets the cast shadows flag of the light.
The cast shadows flag.
Gets the color of the light.
The color.
Sets the color of the light.
The color.
Gets the underlying PlayCanvas light component.
The light component.
Gets the enabled state of the component.
The enabled state of the component.
Sets the enabled state of the component.
The enabled state of the component.
Gets the inner cone angle of the light.
The inner cone angle.
Sets the inner cone angle of the light.
The inner cone angle.
Gets the intensity of the light.
The intensity.
Sets the intensity of the light.
The intensity.
Gets the normal offset bias of the light.
The normal offset bias.
Sets the normal offset bias of the light.
The normal offset bias.
Gets the outer cone angle of the light.
The outer cone angle.
Sets the outer cone angle of the light.
The outer cone angle.
Gets the range of the light.
The range.
Sets the range of the light.
The range.
Gets the shadow bias of the light.
The shadow bias.
Sets the shadow bias of the light.
The shadow bias.
Gets the shadow distance of the light.
The shadow distance.
Sets the shadow distance of the light.
The shadow distance.
Gets the shadow intensity of the light.
The shadow intensity.
Sets the shadow intensity of the light.
The shadow intensity.
Gets the shadow resolution of the light.
The shadow resolution.
Sets the shadow resolution of the light.
The shadow resolution.
Gets the shadow type of the light.
The shadow type.
Sets the shadow type of the light.
The shadow type. Can be:
pcf1-16f
- 1-tap percentage-closer filtered shadow map with 16-bit depth.pcf1-32f
- 1-tap percentage-closer filtered shadow map with 32-bit depth.pcf3-16f
- 3-tap percentage-closer filtered shadow map with 16-bit depth.pcf3-32f
- 3-tap percentage-closer filtered shadow map with 32-bit depth.pcf5-16f
- 5-tap percentage-closer filtered shadow map with 16-bit depth.pcf5-32f
- 5-tap percentage-closer filtered shadow map with 32-bit depth.vsm-16f
- Variance shadow map with 16-bit depth.vsm-32f
- Variance shadow map with 32-bit depth.pcss-32f
- Percentage-closer soft shadow with 32-bit depth.Gets the type of the light.
The type.
Sets the type of the light.
The type.
Gets the VSM bias of the light.
The VSM bias.
Sets the VSM bias of the light.
The VSM bias.
Protected
_onReturns a promise that resolves with this element when it's ready.
A promise that resolves with this element when it's ready.
The LightComponentElement interface provides properties and methods for manipulating
<pc-light>
elements. The LightComponentElement interface also inherits the properties and methods of the HTMLElement interface.