Skip to content

five-on-it / apps/client/src/renderer/daylight / SkyLight

Interface: SkyLight ​

Defined in: apps/client/src/renderer/daylight.ts:44

The scene's light at a moment.

Properties ​

dark ​

dark: number

Defined in: apps/client/src/renderer/daylight.ts:53

How dark it is: 0 by day, 1 in the dead of night (the lamps and windows light by it).


fog ​

fog: number

Defined in: apps/client/src/renderer/daylight.ts:55

The fog's density (EXP2, per metre; 0 for none) and colour.


fogColor ​

fogColor: [number, number, number]

Defined in: apps/client/src/renderer/daylight.ts:56


sky ​

sky: number

Defined in: apps/client/src/renderer/daylight.ts:46

The sky light's intensity and colour.


skyColor ​

skyColor: [number, number, number]

Defined in: apps/client/src/renderer/daylight.ts:47


sun ​

sun: number

Defined in: apps/client/src/renderer/daylight.ts:49

The sun's intensity, colour and direction (pointing down, toward the ground).


sunColor ​

sunColor: [number, number, number]

Defined in: apps/client/src/renderer/daylight.ts:50


sunDirection ​

sunDirection: [number, number, number]

Defined in: apps/client/src/renderer/daylight.ts:51