Skip to content

Weather

const Weather: ComponentDef<WeatherData>

Defined in: ecs/component.ts:1367

The weather of a scene: one of a few presets, a turn toward another, and an optional cycle between them.

A preset is a handful of multipliers on what the scene already has — the sun at a fraction of its strength, the fog thicker, the picture a little greyer — and a few absolute levels (how hard it rains, how wet the ground is), so the same weather fits any project. The component drives the scene’s lights (in play), the post-process effects its volumes resolve (rain, fog, grade, exposure, reflections) and the sound of the rain.