MotionScript

@motion-script/core


@motion-script/core / LightShadow3D

Interface: LightShadow3D

Defined in: render3d/light.ts:13

Shadow-map settings for one light.

Enabling shadows on a light is structural — it recompiles every material the light touches — so set it up once rather than toggling it mid-timeline. bias exists to fight shadow acne (self-shadowing stripes on lit surfaces); a small negative value is the usual fix.

Extended by

Properties

bias?

optional bias?: number

Defined in: render3d/light.ts:19

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


far?

optional far?: number

Defined in: render3d/light.ts:17


mapSize?

optional mapSize?: number

Defined in: render3d/light.ts:15

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


near?

optional near?: number

Defined in: render3d/light.ts:16


normalBias?

optional normalBias?: number

Defined in: render3d/light.ts:21

Slope-scaled bias, for grazing angles.


radius?

optional radius?: number

Defined in: render3d/light.ts:23

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