Optional
labelOptional label of the Light.
Optional
colorThe Light color. Default to Vec3(1)
.
Optional
intensityThe Light intensity. Default to 1
.
Optional
positionOptional
targetOptional
angleMaximum angle of light dispersion from its direction whose upper bound is PI / 2
. Default to PI / 3
.
Optional
penumbraPercent of the spotlight cone that is attenuated due to penumbra. Takes values between 0
and 1
. Default is 0
.
Optional
rangeThe SpotLight range, used to compute the SpotLight attenuation over distance. When range is zero, light will attenuate according to inverse-square law to infinite distance. When range is non-zero, light will attenuate according to inverse-square law until near the distance cutoff, where it will then attenuate quickly and smoothly to 0. Inherently, cutoffs are not physically correct. Default to 0
.
Optional
shadowThe SpotLight shadow parameters used to create a SpotShadow. If not set, the SpotShadow won't be set as active and won't cast any shadows. On the other hand, if anything is passed (even an empty object), the SpotShadow will start casting shadows, so use with caution. Default to null
(which means the SpotLight will not cast shadows).
Base parameters used to create a SpotLight.