Interface: AtmoShellHandle
Handle returned by buildAtmoShell.
Properties
mesh
mesh: Mesh;tick
tick: (elapsed) => void;Advances the procedural drift animation.
Parameters
| Parameter | Type |
|---|---|
elapsed | number |
Returns
void
setOpacity
setOpacity: (value) => void;Live-update the shell opacity in [0, 1] (no rebuild).
Parameters
| Parameter | Type |
|---|---|
value | number |
Returns
void
setVisible
setVisible: (value) => void;Toggles visibility without rebuilding.
Parameters
| Parameter | Type |
|---|---|
value | boolean |
Returns
void
setParams
setParams: (params) => void;Live-tune the procedural shader params. Unspecified fields keep their value.
Parameters
| Parameter | Type |
|---|---|
params | AtmoShellParams |
Returns
void
setLight
setLight: (direction) => void;Updates uLightDir so the day/night terminator tracks the scene's sun.
Parameters
| Parameter | Type |
|---|---|
direction | Vector3 |
Returns
void
setFlatLighting
setFlatLighting: (enabled) => void;true flattens diffuse to uniform brightness (Sol-view dome look).
Parameters
| Parameter | Type |
|---|---|
enabled | boolean |
Returns
void
setHaloMode
setHaloMode: (enabled) => void;Toggles "halo mode" — collapses the volumetric shell to a thin fresnel-driven liseré at the atmosphere's outer silhouette, in the pure body tint. See createAtmoShellHaloMode for the full contract (baseline restoration semantics).
Parameters
| Parameter | Type |
|---|---|
enabled | boolean |
Returns
void
paintFromTiles
paintFromTiles: (colors) => void;Stamps per-tile RGB into the shell's vertex colour buffer using a K-nearest blend. See createAtmoShellPainter.
No-op when the shell was built without tiles (decorative shell — no gameplay link).
Parameters
| Parameter | Type |
|---|---|
colors | Map<number, AtmoShellRGB> |
Returns
void
dispose
dispose: () => void;Disposes geometry + material. Idempotent.
Returns
void