Skip to content

BlobShadowData

Defined in: sdk/src/render/blobShadow.ts:33

The fields of the BlobShadow component.

enabled: boolean

Defined in: sdk/src/render/blobShadow.ts:34


fadeHeight: number

Defined in: sdk/src/render/blobShadow.ts:44

How far above the ground the thing may be before its shadow is gone. 0 never fades it.


groundY: number

Defined in: sdk/src/render/blobShadow.ts:42

Height of the flat ground, in world units, when no ground function is set.


lift: number

Defined in: sdk/src/render/blobShadow.ts:48

How far above the ground the disc is drawn, so it does not flicker against it.


opacity: number

Defined in: sdk/src/render/blobShadow.ts:38

How dark the disc is at its centre, 0 to 1.


radius: number

Defined in: sdk/src/render/blobShadow.ts:36

Radius of the disc where the thing stands on the ground, in world units.


shrink: number

Defined in: sdk/src/render/blobShadow.ts:46

How small the disc is at that height, as a share of its size on the ground: 0 keeps its size, 1 shrinks it to nothing.


softness: number

Defined in: sdk/src/render/blobShadow.ts:40

How soft its edge is: 0 a hard-edged disc, 1 a disc that fades from its centre.