1,204 words
Status: accepted · 28 Nov 2026. Builds on ADR-0076
and ADR-0070.
Amends ADR-0067:
the port applies a picture's weather, and reports drawn.
Context
The port drew a stock 512² weather map, tiled a hundred times across each face of its globe: the same weather over every place and every world. The picture's weather regime went unread, since the port's factory said it applied none. At G1, a fair-weather cumulus cornerstone, it drew a stratocumulus deck under cirrus.
Our weather is a function of the body, the place, the sun and the instant
(ADR-0070): each of three levels has an envelope, a cover and a genus, and
the climate samples them on the CPU (BodyClimate.sample). The native
march's GPU cube of it reaches the native march's own modules, which the
plan retires.
The port reads a weather texel as a potential. Per lane it draws cloud where
mix(w^e, 1, f) passes 1 − C, with C its one global coverage, e the
lane's weather exponent and f its coverage filter width. So the share of
the ground under cloud is the share of the map's texels past the threshold:
the map's own distribution sets the cover, and its structure (Worley cells,
domain warp) is what makes a cloud read as one.
Two defects of the stock map showed once our weather drew through it. The stock cloud channels hold a quarter and two fifths of their texels at exactly zero. And at G1 at device resolution a cumulus stood with straight sides and a square corner, which three different reads of the map drew alike: the port's cube-sphere coordinate snaps in float32 along its face's middle meridian, and every anchor stood there.
Decision
The port reads the map through a weather read of ours, which shifts each
lane's potential so that the map's quantile 1 − c falls on the port's
threshold, with c the body's cover at that place. render/cloudsWeather.ts
holds the read, render/cloudsCover.ts the cover's bake, and a patch to the
port exposes the seam it reads through.
- The seam is the port's.
sampleWeathertakes aweatherSamplerin place of its plain read, and only the port's evolving weather fills it. The patch makes it public asCloudsContext.weatherSampler, read by the march's and the shadow's graphs, and has the march take its read by lane: each lane's value in that lane's slot, the layers' channels already applied, where the plain read is swizzled by them. It is the plan's third rung, a few lines, to be offered upstream. - The map's structure is untouched; where the clouds are and how many is
ours.
w' = w + t − Q(1 − c), withtthe potential each lane's threshold lands on,(1 − C − f)/(1 − f)to the power1/e, andQthe lane's quantile function from a 33-knot table read linearly. The port's coverage and filter widths are read every frame, so the cover is ours whatever the author sets them to, until1 − C ≤ f, where the port draws cloud at every texel. - A thirty-second of another channel breaks the zeros. Each lane's
potential is
w_k + w_tie/32: low from R with B, middle from G with A, high from B with R. Its distribution is continuous, so the cover runs to 1. The table is of that sum over the pinned map's texels, and a test decodes the map and holds it there. - The cover is the climate's, round the anchor. The lever's regime or the
body's own climate (
cloudsWeatherOf, handed to the clouds chunk ascloudsServedis) is baked over ±2,000 km of the port's +X face at 128², at the body-fixed direction under each texel's cloud through the port's relaxation and the rigid fit ofcloudsFrame.ts. The bake is whole on a cut (another anchor, body, weather or air, or a cut of the sensor's history, which a new picture and every set or release of the observatory's instant are) and an eighth a frame as the weather's clock runs, faded in over the last. Our three levels set the port's first three lanes' heights. - Each place has its own clouds, and they drift. The map's offset puts the anchor's own place on the body under the eye, carried east by the low level's turn and north by the weather's drift, formed in float64 and reduced to the map's period. Without it every place drew the same clouds overhead.
- The anchor stands off the face's middle meridian. The port's east coordinate is the square root of a difference of two terms near 1.5, which in float32 is ε along that meridian, so the coordinate snapped in steps of 1.4 km of weather on a north–south line through every eye. The frame turns about ECEF's Z to stand the anchor at the face's cube coordinate (0.5, 0), and the cover window spans 0.046 to 0.954, clear of the meridian and of the face's edges.
- The author's settings stand. A lane's height or base, or the map's offset or velocity, that the author holds (an override, or a cloud type's layers) is left as set, and the read takes the offset the march will add. Each of our lanes reads the channel its layer names, so two lanes on one channel, as the port's cloud types put them, share a structure and draw their own covers.
- The port applies the picture's weather, and an ordinary page keeps Earth's deck under a picture with weather whatever the renderer applies.
Alternatives considered
Baking our weather into a window texture of the port's own format. The port's 196 m texels over a window wide enough for orbit are a texture of tens of megabytes, and a window narrow enough to hold them repeats across the disk from orbit. The read needs only a 128² cover and the stock map at its own resolution.
The port's procedural weather. It replaces the map's contents from a seed, once, and takes no cover per place, and its cost is unmeasured upstream.
A cubic B-spline read of the map, for the square cells. On each mip's own grid it took eight taps and 0.63 ms at G1, and drew the same straight sides as a bilinear read: the cells were the coordinate's, not the filter's.
Consequences
G1 draws separate cumulus over a clear sky and reports its weather drawn.
Two places 500 km apart under the climate draw different skies, and three
hours on the clouds have moved. At G1, 1920 × 1080 on the dev build, the frame
is 11.65 ms against 15.12 ms with the stock map, for a sky with less cloud in
it. Every lane reads the shift at the map's own mip, whose distribution the
table does not hold, so far cover drifts from ours. The port's 3D shape noise
stands in its ECEF as before, so its detail repeats at every anchor. Where the
port's coverage is set above 1 − f, the read cannot thin the lane. The
genus table moves to a module of its own (weatherGenusTable.ts), because the
genus module's droplet functions reach the Mie tables, 190 kB gzipped that the
page would otherwise load.