Creates a new SpotLight.
The configuration options for the light.
The angle of the light cone in radians.
The physical bounding volume of the object.
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.
Whether this object should generate bounds and participate in physics/raycasting. Defaults to true.
OptionalonOptionalonOptionalonOptionalonOptionalonOptionalonThe penumbra factor (0-1).
OptionalrigidA 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.
OptionaltagOptional app-defined category tag, for typed identification instead of matching on name.
ReadonlytypeThe type of the light.
ReadonlyuuidApplies the light's data to the collective light data structure.
The structure to populate.
Reads this object's position in world space, i.e. after resolving the full parent
chain -- unlike position, which is always local to its immediate parent. Requires
worldMatrix to be current (see updateMatrixWorld()).
Optional vector to write into, to avoid allocating one per call.
Updates the shadow camera's matrices based on the spotlight's properties.
Spotlight that emits light in a cone shape.