Skip to content

Interface: LiquidShellConfig ​

Inputs for buildLiquidShell.

Properties ​

tiles ​

ts
tiles: readonly Tile[];

Tiles eligible for the cap — typically every tile below the waterline.


baseElevation ​

ts
baseElevation: ReadonlyMap<number, number>;

Per-tile underlying mineral elevation in band space (wall start).


topElevation ​

ts
topElevation: number;

Uniform top elevation in band space — the waterline.


palette ​

ts
palette: TerrainLevel[];

Palette feeding the band → world-height conversion (must match the sol mesh).


bodyRadius ​

ts
bodyRadius: number;

World-space surface radius of the body (= BodyConfig.radius).


coreRadius ​

ts
coreRadius: number;

World-space radius of the inner core sphere.


color ​

ts
color: ColorRepresentation;

Resolved liquid tint (caller-owned chemistry).


opacity? ​

ts
optional opacity?: number;

Initial alpha in [0, 1] — defaults to 0.78 (translucent water).


graphicsUniforms ​

ts
graphicsUniforms: GraphicsUniforms;

Per-body graphics-uniform bag — wires the wave / specular / opacity uniforms into the shader and lets setOpacity push slider changes without rebuilding the material.

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