@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?
optionalbias?:number
Defined in: render3d/light.ts:19
Depth offset to suppress self-shadowing artefacts. Try -0.0005.
far?
optionalfar?:number
Defined in: render3d/light.ts:17
mapSize?
optionalmapSize?:number
Defined in: render3d/light.ts:15
Square shadow-map resolution. Powers of two. Default 1024.
near?
optionalnear?:number
Defined in: render3d/light.ts:16
normalBias?
optionalnormalBias?:number
Defined in: render3d/light.ts:21
Slope-scaled bias, for grazing angles.
radius?
optionalradius?:number
Defined in: render3d/light.ts:23
Blur radius, for the soft (pcfSoft/vsm) shadow types.