OptionalcastIf true, the spotlight will cast shadows and generate a perspective depth map. Defaults to true.
OptionalcolorColor of emitted light. Can be a Color instance, hex string, or RGB array. Defaults to #ffffff.
OptionalinnerSpotlight inner cone angle in degrees. Defaults to 30.0.
OptionalintensityScalar multiplier for light emission intensity. Defaults to 1.0.
OptionalouterSpotlight outer cone angle in degrees. Defaults to 45.0.
OptionalpositionOptional initial position of the light node in 3D space.
OptionalrangePhysical limit at which spotlight attenuation falls to zero. Defaults to 20.0.
OptionalrotationOptional initial rotation Euler angles in radians.
OptionalrotationOptional initial rotation Euler angles in degrees.
OptionalshadowCustom depth bias to avoid shadow acne or peter panning. Defaults to 0.00001.
OptionalshadowResolution width/height of the shadow map texture. Defaults to 2048.
OptionalshadowNear clipping plane for perspective shadow projection. Defaults to 0.1.
OptionaluseToggle Percentage-Closer Filtering (PCF) to smooth out shadow edges. Defaults to true.
Configuration options specific to spotlight sources.