Skip to content

TimeOfDayState

Defined in: postprocess/timeOfDay.ts:20

daylight: number

Defined in: postprocess/timeOfDay.ts:31

0 at night, 1 by day, with the dusk between.


exposure: number

Defined in: postprocess/timeOfDay.ts:47

Stops added to the exposure compensation: a night is kept readable, not as bright as a day.


fogBrightness: number

Defined in: postprocess/timeOfDay.ts:44

× Height Fog’s colour (how lit the haze is), and the dusk colour it moves toward and how far.


fogDusk: number

Defined in: postprocess/timeOfDay.ts:45


hour: number

Defined in: postprocess/timeOfDay.ts:22

The hour this is the state of, 0..24.


light: number

Defined in: postprocess/timeOfDay.ts:35

× the key light’s strength, and what it is tinted: warm at the horizon, white overhead, blue by moonlight.


lightDir: [number, number, number]

Defined in: postprocess/timeOfDay.ts:33

The unit vector the key (directional) light shines FROM: the sun by day, the moon by night.


lightTint: [number, number, number]

Defined in: postprocess/timeOfDay.ts:36


moonDir: [number, number, number]

Defined in: postprocess/timeOfDay.ts:25


reflection: number

Defined in: postprocess/timeOfDay.ts:41

× what baked reflection probes show, and × their colour.


reflectionSaturation: number

Defined in: postprocess/timeOfDay.ts:42


sky: number

Defined in: postprocess/timeOfDay.ts:38

× the ambient light’s strength, and its tint.


skyTint: [number, number, number]

Defined in: postprocess/timeOfDay.ts:39


sunAzimuth: number

Defined in: postprocess/timeOfDay.ts:29

The sun’s azimuth as the effects take it: degrees from +Z toward +X.


sunDir: [number, number, number]

Defined in: postprocess/timeOfDay.ts:24

Unit vectors toward the sun and the moon, in world space (Y up).


sunElevation: number

Defined in: postprocess/timeOfDay.ts:27

The sun’s height above the horizon in degrees, negative below it.