prepare() does every await and returns a synchronous make(); rebuild swaps after the load and a stale or disposed build is never made, so it never speaks. onPlanesFail/onPlanesOk are announced for the scene that won, on change only; a success is silent. Tests cover held decodes, post-dispose and superseded failures, the manifest-view sun, and the fallback sky after a failure.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The baked planes are haze as alpha, so b laid over a at opacity w doubled the haze mid-blend and popped when the choice collapsed to b alone. crossfade() is the one rule: a at 1 - w plus b at w, summed in an isolated group (plus-lighter in the rig, lighter in an offscreen for the still). Tests pin composite = lerp on alpha planes, BLEND_EDGE, and the noon azimuth split.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
createRidgeScene takes a decoded Backdrop and adds one rig (far, mid, near) with transform-only drift; index.ts create() loads manifest, frame choice and planes with the scene chunk; BackgroundSceneConfig.place; vite copies public/ridge. Tests also cover resize debounce, listener removal and the window-size fallback.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Cuts ridgeWorld, ridgeBake, horizon.ts, viennaHorizon.json, bake-horizon.py and the layer/rig/drift half of Ridge.ts, the
HORIZON_CREDIT line, onBake, and the dead SkyColours fields (ground, sunAzimuth, band). Rollback is the tag
parked/ratatoskr-noise-ridge (ruling ridge-ad-rollback-tag).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
relight_planes splits the opaque relight into three straight-alpha planes
by the affine-haze trick; the premultiplied colour is made exact over the
reference haze per channel (a scalar alpha alone drifts 34/255 on the far
plane, because the haze share differs per channel). export.py bakes a
place, writes WebP planes, manifest.json and index.json under a budget.
Tests: the straight-alpha test compared a hazy body with a few solid ink
pixels (fixture, not code); the rebake fixture replaced a plane with one
that had no solid pixel; an everywhere-opaque plane decodes as RGB, now
read back as RGBA.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Moved from the mockup workspace: ridge.py, sun.py, places.json, tests. core.py is
dropped (ridge.py only imported its save_png, unused; the rest carried hard-coded
paths). places.json is read beside ridge.py; tiles and caches come from RIDGE_TILES
and RIDGE_WORK.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>