MotionScript

@motion-script/core


@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?

optional bias?: number

Defined in: render3d/light.ts:19

Depth offset to suppress self-shadowing artefacts. Try -0.0005.

Inherited from

LightShadow3D.bias


extent?

optional extent?: number

Defined in: render3d/light.ts:33

Half-extent of the orthographic shadow frustum, in world units.


far?

optional far?: number

Defined in: render3d/light.ts:17

Inherited from

LightShadow3D.far


mapSize?

optional mapSize?: number

Defined in: render3d/light.ts:15

Square shadow-map resolution. Powers of two. Default 1024.

Inherited from

LightShadow3D.mapSize


near?

optional near?: number

Defined in: render3d/light.ts:16

Inherited from

LightShadow3D.near


normalBias?

optional normalBias?: number

Defined in: render3d/light.ts:21

Slope-scaled bias, for grazing angles.

Inherited from

LightShadow3D.normalBias


radius?

optional radius?: number

Defined in: render3d/light.ts:23

Blur radius, for the soft (pcfSoft/vsm) shadow types.

Inherited from

LightShadow3D.radius