Creates a new SpotLight.
The configuration options for the light.
The angle of the light cone in radians.
Whether the light casts shadows.
The color of the light.
The decay factor of the light.
The direction of the light.
The maximum distance of the light.
The intensity of the light.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonThe penumbra factor (0-1).
A small offset to prevent shadow acne.
The camera used to render the shadow map for this light.
An offset along the surface normal to prevent shadow acne.
The resolution of the shadow map for this light.
ReadonlytypeThe type of the light.
ReadonlyuuidApplies the light's data to the collective light data structure.
The structure to populate.
Updates the shadow camera's matrices based on the spotlight's properties.
Spotlight that emits light in a cone shape.