Skip to content

Interface: PlanetTiles ​

Planet-only tile primitives — exposes the sol and atmo boards under separate sub-namespaces, plus the smooth-sphere paint helpers shared across the body.

Properties ​

sol ​

ts
sol: SolBoardTiles;

Sol board — interactive hex grid carrying terrain relief.


atmo ​

ts
atmo: BoardTiles | null;

Atmo board — playable hex grid floating above the sol surface. null on bodies without an atmosphere (atmosphereThickness === 0).

Methods ​

repaintSmoothSphere() ​

ts
repaintSmoothSphere(): void;

Forces the smooth-sphere preview to re-read sim.tileStates and repaint its vertices. Call after mutating tile elevations.

Returns ​

void


paintSmoothSphere() ​

ts
paintSmoothSphere(colors): void;

Stamps per-tile RGB into the smooth-sphere vertex buffer.

Parameters ​

ParameterType
colorsMap<number, RGB>

Returns ​

void


paintAtmoShell() ​

ts
paintAtmoShell(colors): void;

Stamps per-tile RGB onto the procedural atmo shell that drives the 'shader' view on rocky and gaseous bodies. The shell uses a nearest-tile lookup so vertices closest to a painted hex pick up its colour. No-op on bodies without an atmo shell.

Parameters ​

ParameterType
colorsMap<number, RGB>

Returns ​

void

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