OptionalcascadeNumber of cascades for CSM (typically 3 or 4). Defaults to 4.
OptionalcascadeFactor weighting linear vs logarithmic cascade splits (value between 0 and 1). Defaults to 0.85.
OptionalcastIf true, the light will cast shadows and generate an orthographic depth map. Defaults to true.
OptionalcolorColor of emitted light. Can be a Color instance, hex string, or RGB array. Defaults to #ffffff.
OptionalcsmMaximum distance along camera depth for shadow mapping projection. Defaults to 100.0.
OptionalintensityScalar multiplier for light emission intensity. Defaults to 1.0.
OptionalpositionOptional initial position of the light node in 3D space.
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.0001.
OptionalshadowTotal depth range along the Z axis of the shadow projection frustum. Defaults to 200.0.
OptionalshadowResolution width/height of the shadow map texture. Defaults to 2048.
OptionalshadowWorld-space boundary half-extent defining the orthographic shadow view box. Defaults to 20.0.
OptionaluseIf true, the directional light will use Cascaded Shadow Maps (CSM) to divide the frustum. Defaults to false.
OptionaluseToggle Percentage-Closer Filtering (PCF) to smooth out shadow edges. Defaults to true.
Configuration options specific to directional light sources.