Atmosphere
A description of the sky and the ground's weather state, all in 0..1 unless stated. Plain data: blend it, store it, send it. Presets are in ATMOSPHERES.
Defined in: engine/src/atmosphere/weather.ts:27
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
cloud | number | 0 clear .. 1 overcast. | engine/src/atmosphere/weather.ts:29 |
cover | number | 0 .. 1: how much snow has settled. Ground state, like wetness. | engine/src/atmosphere/weather.ts:39 |
fog | number | 0 .. 1: mist on top of whatever the precipitation brings. | engine/src/atmosphere/weather.ts:35 |
precipitation | object | Kind and 0..1 intensity; intensity is ignored for "none". | engine/src/atmosphere/weather.ts:31 |
precipitation.intensity | number | - | engine/src/atmosphere/weather.ts:31 |
precipitation.kind | PrecipitationKind | - | engine/src/atmosphere/weather.ts:31 |
wetness | number | 0 .. 1: how wet the ground is. Ground state, accumulated by the game (see approach). | engine/src/atmosphere/weather.ts:37 |
wind | object | Direction the wind blows towards, degrees (0 = +Z, 90 = +X); strength 0..1. | engine/src/atmosphere/weather.ts:33 |
wind.direction | number | - | engine/src/atmosphere/weather.ts:33 |
wind.strength | number | - | engine/src/atmosphere/weather.ts:33 |
timeOfDay()
Every lighting field of the renderer's FrameParams for a time of day: key light, ambient, sun and moon discs, sky colours. By day the key light follows the sun; at night it is a dim blue moonlight and the ambient drops low enough for point lights to carry the scene. The moon disc lights nothing;...
AtmosphereFrameOptions
Options for atmosphereFrame.