Atmos
The mountain's time of day and weather on worldClockKit's shared clock: four lighting presets (dawn, midday, dusk, night) and snowfall, the alpine sky look, the colour grade, valley haze in the director's fog, and the ambience levels per time. `setTime(name, {hold})`, `setWeather…
Atmos
The mountain's time of day and weather on worldClockKit's shared clock: four lighting presets (dawn, midday, dusk, night) and snowfall, the alpine sky look, the colour grade, valley haze in the director's fog, and the ambience levels per time. setTime(name, {hold}), setWeather(name), weights(), lookFor(weights, snow), current(), report(). Started by the AlpineAtmosphere component.
Interface
What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.
conforms to
zero/source-extract/v2The mountain's time of day and weather on worldClockKit's shared clock: four lighting presets (dawn alpenglow, clear midday, amber dusk, cold moonlit night) and snowfall that every player sees at the same moment, an "alpine" sky look the kit's director lights the scene with (thin high-altitude blue, crisp sun, blue snow-shade), and on each machine a colour grade per time and weather, valley haze that layers the distant ranges, and the ambience and footsteps. Modelled on forestKit's Atmosphere, with its own presets and state, so a world can hold both.
lerp(a: number, b: number, t: number) → number return a
| arg | type | description |
|---|---|---|
| a | number | |
| b | number | |
| t | number |
smooth(e0: number, e1: number, x: number) → number
| arg | type | description |
|---|---|---|
| e0 | number | |
| e1 | number | |
| x | number |
rgb(r: number, g: number, b: number) → void
| arg | type | description |
|---|---|---|
| r | number | |
| g | number | |
| b | number |
deepFreeze(t: any) → any
| arg | type | description |
|---|---|---|
| t | any |
hourForSolar(solar: number) → number
| arg | type | description |
|---|---|---|
| solar | number |
weightsAt(solar: number) → void
Weight of each preset at solar hour `solar` (sums to 1).
| arg | type | description |
|---|---|---|
| solar | number |
weights( ) → void
timeOfDay( ) → string
The preset nearest the clock now: dawn, midday, dusk or night.
snowAmount( ) → number
How hard it is snowing, 0-1 (the shared weather's snow channel, fades included).
weather( ) → string
setTime(name: string, opts: { hold: boolean? }?) → void
Set the shared clock to a preset for every player: "dawn", "midday", "dusk", "night". `opts.hold = true` pauses the clock there.
| arg | type | description |
|---|---|---|
| name | string | |
| opts | { hold: boolean? }? |
setWeather(name: string, opts: { fade: number? }?) → void
Set the shared weather for every player: "clear", "cloudy", "snow", "blizzard" (any worldClockKit weather). Fades over `opts.fade` seconds.
| arg | type | description |
|---|---|---|
| name | string | |
| opts | { fade: number? }? |
configure(opts: any) → void
| arg | type | description |
|---|---|---|
| opts | any |
config( ) → any
mixGrade(a: any, b: any, t: number) → any
| arg | type | description |
|---|---|---|
| a | any | |
| b | any | |
| t | number |
lookFor(w: { [string]: number }, snow: number) → any
The look for preset weights `w` and snow amount `snow` (0-1): `{ grade, haze, hazeTint, hazeTintMix, ambience, snow }`. Pure.
| arg | type | description |
|---|---|---|
| w | { [string]: number } | |
| snow | number |
current( ) → any
setMood(mood: any?) → void
Give THIS machine its own mood over the clock's preset blend: `{ grade = { exposure, contrast, saturation, green, tint, shadow, highlight, lift, vignette }?, haze?, hazeTint?, hazeTintMix?, sky = { zenith, horizon, ground, exposure?, turbidity? }?, overcast? }` (colours as { r, g, b }; `overcast` colours the snow-cloud deck). Any field left out follows the presets. Nothing is synced: a player in one level can see its own sky while a friend sees another. `nil` returns to the presets. Pair it with worldClockKit's `Clock.setLocal` / `Weather.setLocal` to move this machine's hour and weather too.
| arg | type | description |
|---|---|---|
| mood | any? |
mood( ) → any
shapeEnv(env: any) → void
Chained after any other hook (forestKit's included), so there is still a single fog writer.
| arg | type | description |
|---|---|---|
| env | any |
installHook( ) → void
effectLive(name: string) → boolean
| arg | type | description |
|---|---|---|
| name | string |
ensureGrade( ) → void
writeGrade(g: any) → void
| arg | type | description |
|---|---|---|
| g | any |
ensureSky( ) → void
The scene's own ProceduralSky is used when it has one (worldClockKit's director turns it through the day); otherwise one is provided on this machine (temporary, never saved). Either way the snowfall greys it over. It is never destroyed while the director may hold it.
applySky(snow: number) → void
| arg | type | description |
|---|---|---|
| snow | number |
setColor(field: string, col: { number }) → void
| arg | type | description |
|---|---|---|
| field | string | |
| col | { number } |
overcastMesh( ) → any
applyOvercast(snow: number) → void
| arg | type | description |
|---|---|---|
| snow | number |
applyClouds(dt: number, look: any) → void
| arg | type | description |
|---|---|---|
| dt | number | |
| look | any |
start(opts: any?) → void
Start the alpine look, ambience and footsteps on this machine (the AlpineAtmosphere component calls this).
| arg | type | description |
|---|---|---|
| opts | any? |
stop( ) → void
running( ) → boolean
tick(dt: number) → void
One frame: blend the look from the clock and weather and write what changed; tick the ambience and footsteps.
| arg | type | description |
|---|---|---|
| dt | number |
report( ) → any
What this machine shows now: `{ time, weights, snow, weather, look, clockHour }`.
Sub-parts
Everything contained inside this part. Assets are composite children (clickable cards). Files are leaf payloads. Expand any row to view its source.
Showing up to 3 levels deep. Open a part to see what it holds further down.
Problems
Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.
agent_score is exposed.+ quality × 0.35
+ performance × 0.25
± compat factor
Usability ratings
Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".
Scoped to this part · feeds back into the world's score.