Skip to main content

PointLightOptions

@zylem/game-lib


@zylem/game-lib / entity / PointLightOptions

Interface: PointLightOptions

Defined in: packages/game-lib/src/lib/entities/light.ts:79

Extends​

  • BaseLightOptions

Properties​

castShadow?​

optional castShadow?: boolean

Defined in: packages/game-lib/src/lib/entities/light.ts:85


color?​

optional color?: ColorRepresentation

Defined in: packages/game-lib/src/lib/entities/light.ts:50

Light colour. Default #ffffff.

Inherited from​

BaseLightOptions.color


decay?​

optional decay?: number

Defined in: packages/game-lib/src/lib/entities/light.ts:84

Physical falloff exponent. Default 2 (three.js default).


distance?​

optional distance?: number

Defined in: packages/game-lib/src/lib/entities/light.ts:82

Maximum range of the light (0 = infinite).


intensity?​

optional intensity?: number

Defined in: packages/game-lib/src/lib/entities/light.ts:52

Scalar intensity multiplier. Default 1.

Inherited from​

BaseLightOptions.intensity


name?​

optional name?: string

Defined in: packages/game-lib/src/lib/entities/light.ts:48

Inherited from​

BaseLightOptions.name


position?​

optional position?: Vec3

Defined in: packages/game-lib/src/lib/entities/light.ts:54

World-space position. Default \{0,0,0\}. Not meaningful for ambient.

Inherited from​

BaseLightOptions.position


shadow?​

optional shadow?: Omit<LightShadowOptions, "top" | "left" | "right" | "bottom">

Defined in: packages/game-lib/src/lib/entities/light.ts:87

Shadow options (directional-only frustum fields are ignored).


type​

type: "point"

Defined in: packages/game-lib/src/lib/entities/light.ts:80