blendAtmosphere()
Blend two atmospheres. A change of precipitation kind fades one out before the other fades in.
function blendAtmosphere(
a: Atmosphere,
b: Atmosphere,
t: number
): Atmosphere;Defined in: engine/src/atmosphere/weather.ts:78
Parameters
| Parameter | Type |
|---|---|
a | Atmosphere |
b | Atmosphere |
t | number |
Returns
atmosphereFrame()
Lighting and the renderer's atmosphere settings for one frame: overcast dims and flattens the key light and greys the sky (keeping the night dark), fog takes the horizon's colour, wind tilts the rain and snow and drives the clouds and the water. With a clear atmosphere the lighting passes...
makeAtmosphereTransition()
Change weather smoothly. The game decides when to call set; the transition only blends (see blendAtmosphere: a change of precipitation kind fades one out before the other fades in, and wind turns the short way round).