Skip to content

Interface: AtmoShellHandle

Handle returned by buildAtmoShell.

Properties

mesh

ts
mesh: Mesh;

tick

ts
tick: (elapsed) => void;

Advances the procedural drift animation.

Parameters

ParameterType
elapsednumber

Returns

void


setOpacity

ts
setOpacity: (value) => void;

Live-update the shell opacity in [0, 1] (no rebuild).

Parameters

ParameterType
valuenumber

Returns

void


setVisible

ts
setVisible: (value) => void;

Toggles visibility without rebuilding.

Parameters

ParameterType
valueboolean

Returns

void


setParams

ts
setParams: (params) => void;

Live-tune the procedural shader params. Unspecified fields keep their value.

Parameters

ParameterType
paramsAtmoShellParams

Returns

void


setLight

ts
setLight: (direction) => void;

Updates uLightDir so the day/night terminator tracks the scene's sun.

Parameters

ParameterType
directionVector3

Returns

void


setFlatLighting

ts
setFlatLighting: (enabled) => void;

true flattens diffuse to uniform brightness (Sol-view dome look).

Parameters

ParameterType
enabledboolean

Returns

void


setHaloMode

ts
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

ParameterType
enabledboolean

Returns

void


paintFromTiles

ts
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

ParameterType
colorsMap<number, AtmoShellRGB>

Returns

void


dispose

ts
dispose: () => void;

Disposes geometry + material. Idempotent.

Returns

void

Distribué sous la licence indiquée dans le dépôt.