TimeOfDayState
Defined in: postprocess/timeOfDay.ts:20
Properties
Section titled “Properties”daylight
Section titled “daylight”daylight:
number
Defined in: postprocess/timeOfDay.ts:31
0 at night, 1 by day, with the dusk between.
exposure
Section titled “exposure”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
Section titled “fogBrightness”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
Section titled “fogDusk”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
Section titled “lightDir”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
Section titled “lightTint”lightTint: [
number,number,number]
Defined in: postprocess/timeOfDay.ts:36
moonDir
Section titled “moonDir”moonDir: [
number,number,number]
Defined in: postprocess/timeOfDay.ts:25
reflection
Section titled “reflection”reflection:
number
Defined in: postprocess/timeOfDay.ts:41
× what baked reflection probes show, and × their colour.
reflectionSaturation
Section titled “reflectionSaturation”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
Section titled “skyTint”skyTint: [
number,number,number]
Defined in: postprocess/timeOfDay.ts:39
sunAzimuth
Section titled “sunAzimuth”sunAzimuth:
number
Defined in: postprocess/timeOfDay.ts:29
The sun’s azimuth as the effects take it: degrees from +Z toward +X.
sunDir
Section titled “sunDir”sunDir: [
number,number,number]
Defined in: postprocess/timeOfDay.ts:24
Unit vectors toward the sun and the moon, in world space (Y up).
sunElevation
Section titled “sunElevation”sunElevation:
number
Defined in: postprocess/timeOfDay.ts:27
The sun’s height above the horizon in degrees, negative below it.