Skip to content

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

Variable: DAYLIGHT ​

const DAYLIGHT: object

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

How the night and the weather light the scene.

Type Declaration ​

fog ​

readonly fog: 0.012 = 0.012

The fog's density at its thickest (EXP2, per metre)…

low ​

readonly low: readonly [1, 0.72, 0.5]

The sun's tint low at dawn and dusk.

minNight ​

readonly minNight: 0.25 = 0.25

The darkest the player may set the night (a share of the day's light).

moon ​

readonly moon: 0.12 = 0.12

What the moon gives back of the sun at night.

night ​

readonly night: readonly [0.55, 0.62, 0.95]

The night's tint of the sky light (moonlight blue).

overcastSky ​

readonly overcastSky: 0.25 = 0.25

…and this share of the sky light.

overcastSun ​

readonly overcastSun: 0.6 = 0.6

A fully overcast sky takes this share of the sun…

rainHaze ​

readonly rainHaze: 0.003 = 0.003

…and the rain's haze at a downpour.