@motion-script/core / DirectionalLightShadow3D
Interface: DirectionalLightShadow3D
Defined in: render3d/light.ts:31
Shadow settings for a directional light. Its shadow camera is orthographic, so it needs an explicit world-space extent — too large and the shadow is blocky, too small and it clips. Size it to the subject, not the whole scene.
Extends
Properties
bias?
optionalbias?:number
Defined in: render3d/light.ts:19
Depth offset to suppress self-shadowing artefacts. Try -0.0005.
Inherited from
extent?
optionalextent?:number
Defined in: render3d/light.ts:33
Half-extent of the orthographic shadow frustum, in world units.
far?
optionalfar?:number
Defined in: render3d/light.ts:17
Inherited from
mapSize?
optionalmapSize?:number
Defined in: render3d/light.ts:15
Square shadow-map resolution. Powers of two. Default 1024.
Inherited from
near?
optionalnear?:number
Defined in: render3d/light.ts:16
Inherited from
normalBias?
optionalnormalBias?:number
Defined in: render3d/light.ts:21
Slope-scaled bias, for grazing angles.
Inherited from
radius?
optionalradius?:number
Defined in: render3d/light.ts:23
Blur radius, for the soft (pcfSoft/vsm) shadow types.