Environment · interface
DaylightKey
The lighting at one point of the palette's scalar. Every colour is linear and may exceed one.
Explained in Sky and atmosphere.
interface DaylightKeyimport type { DaylightKey } from '@driftengine/core';Properties
| Name | Type | Description |
|---|---|---|
atreadonly | number | Where on the palette's scalar this key sits: a sun elevation, a day factor, an hour. |
sunColorreadonly | Readonly<Vec3> | The sun's radiance at the surface it lights, which is the directional light while it is up. |
moonColorreadonly | Readonly<Vec3> | The moon's, for whichever part of the palette the moon lights. |
skyTopreadonly | Readonly<Vec3> | |
skyHorizonreadonly | Readonly<Vec3> | |
skyDeepreadonly | Readonly<Vec3> | |
ambientreadonly | Readonly<Vec3> | The hemisphere's sky half. |
ambientGroundreadonly | Readonly<Vec3> | The hemisphere's ground half: what the floor throws back up. |
fogColorreadonly | Readonly<Vec3> | |
fogDensityreadonly | number | |
shadowStrengthreadonly | number | How dark a directional shadow is, 0 to 1. |
emissiveGainreadonly | number | The emissive master gain: how strongly lamps and flames read against this light. |
exposurereadonly | number | The exposure a viewer's eye settles on here. Positive; blended in stops. |