MotionScript

@motion-script/core


@motion-script/core / ShadowSettings3D

Interface: ShadowSettings3D

Defined in: render3d/scene-settings.ts:55

Scene-wide shadow settings.

Enabling shadows recompiles every material that receives them, so treat this as setup rather than something to animate. Individual lights opt in with their own shadow field plus castShadow/receiveShadow on the objects.

Properties

enabled?

optional enabled?: boolean

Defined in: render3d/scene-settings.ts:56


mapSize?

optional mapSize?: number

Defined in: render3d/scene-settings.ts:60

Default shadow-map resolution for lights that don't set their own.


type?

optional type?: ShadowType3D

Defined in: render3d/scene-settings.ts:58

Default "pcfSoft" — soft edges at a modest cost.