984 words
Status: accepted · 28 Nov 2026. Amends ADR-0076, whose port lit every world with takram's Earth.
Context
The port lights a cloud and hazes the air in front of it from takram's atmosphere, Bruneton's precomputed model, at its default parameters: a 60 km shell, gas over 8 km, and an aerosol column of 0.005 at the ground. Our air is ADR-0056's, measured per body, and Earth's aerosol alone is 0.12 deep. So every far cloud stood in a clearer air than the ground under it. At the G1 cornerstone the band of cloud just over the horizon read (165, 176, 214) against the ground's (197, 203, 224) beneath it: darker and bluer, where both should have faded into one haze. On a generated world whose dust colors its sky orange, the clouds were lit by Earth's blue sky and drew white and blue against it.
takram's parameters are the same three media as our recipe's, each a
coefficient at its densest times a density profile in height. Two things make
the mapping more than a copy. The parameters are constants of every program
built over them: AtmosphereContextBase writes them into a constant struct
when the context is constructed, and the port's march and its tables compile
against that struct. And our gas and aerosol fade to nothing at the ceiling,
e^(−h/H)·(1 − h/C), a product that takram's layer, an exponential plus a
line, cannot express.
Decision
The adapter builds takram's atmosphere from the recipe the ground's tables
hold, and draws each air with a rig of its own. render/cloudsAir.ts maps
the recipe, and render/clouds.ts swaps the rig when the served body's air
changes.
- The planet stays takram's Earth. The port draws on an Earth ellipsoid
and
cloudsFrame.tsstands the eye on it, so the shell keeps takram's 6,360 km ground and takes our heights over it: a coefficient per planet radius is that over the body's radius in meters, and a height is that times it. A column's vertical optical depth, scale heights and top are the body's. Only the curvature a grazing ray crosses is Earth's. - The vertical optical depth is what is kept. The shell here is the plain exponential, and each coefficient is scaled by our column over the exponential's, so the sun's color through the column is ours. The density at the ground sits under ours by the fade's share: 8% of Earth's gas and 1% of its aerosol.
- The forward color and the detached haze are left out. takram's aerosol has one color and takes our sideways one, which is what lights a cloud seen across the haze. Its one profile that can hold a tent is the ozone's, and Titan's and Mars's thin high layers draw rings over a limb, not a picture a cloud is in.
- An air is a rig. The atmosphere, the port's pass and context, and the composite's material are built together for one air and disposed together. A served body of another air drops the rig and builds the next on the spot. The port's pipelines build on the first frame drawn in any case, so the swap costs what the first frame costs. The depth copy, the composite's meshes, the over pass and the settings outlive it.
- Until the served body's tables are baked, the clouds wait. The report
holds
pending.mapswhile the recipe is not there, as it does for the four tables the bake announces after it.
At G1 the band over the horizon reads (190, 187, 205) against the same
ground. On P21w_9_3_d/b:1 the clouds are lit and hazed orange by the dust
that colors its sky.
Alternatives considered
A patch that makes the parameters uniforms. One context would serve every air, the tables would bake again on a change, and no program would rebuild. It edits takram's fork, the fragile layer of the dependency, in the struct every program of the atmosphere reads, and the port's own setup code reads the same parameters on the CPU at graph time. The rig needs no patch, and a change of served body is rare and already a cut.
Keeping the coefficient at the ground and losing the column. The haze within a kilometer of a low cloud would match ours exactly, and the column would carry 8% more gas than measured. The column is the measured quantity (Bodhaine's Rayleigh depth, MACv2's aerosol), and it is what reddens the light on a cloud at dusk.
Our own air applied over the port's cloud, in the composite (the plan's second route). It would draw the haze in front of a cloud with the same march as the ground's, by turning the port's haze off and reading the cloud's depth from its layer. The port has no switch for its haze, so it is a patch, and the layer's depth is a quarter of the buffer on each axis with no history, under a color that is resolved through one, so its edges would not meet. It waits for the blind panel to find a difference this one leaves.
Consequences
The port's haze in front of a cloud is now as dense as the ground's, and
near clouds read softer than they did. The baked table reads the column at
the ground as though its lowest 100 m were missing, measured per medium in
cloudsAtmosphere.gpu.test.ts, so the aerosol's vertical depth there is
e^(−100/1200) of ours to every lookup; takram maps that texel to the ground
radius, and the cause in the bake is not found. The cloud band at G1 keeps a hue the ground's horizon does not, a
neutral against its blue. A body of a new air rebuilds the port's programs
on its first frame, and boot builds takram's Earth before the first served
body's air is known: that rig is wasted when the first body is not Earth.