Interface: InteractiveMesh
Public surface of the interactive hex mesh. Exposes reusable primitives (tileGeometry / writeTileColor / computeTileBaseRGB / onHoverChange / surfaceOffset) that any overlay renderer can consume to paint tiles without knowing about the underlying mesh layout.
Extended by
Properties
group
group: Group;faceToTileId
faceToTileId: number[];surfaceOffset
surfaceOffset: number;Baseline radial offset (body-relative) applied to the interactive surface.
setFill
setFill: (on) => void;Parameters
| Parameter | Type |
|---|---|
on | boolean |
Returns
void
tileGeometry
tileGeometry: (tileId) => TileGeometryInfo | null;Resolves the geometry context for a tile (tile + terrain level). Returns null when the id is unknown. Consumed by overlay factories such as createTileOverlayMesh.
Parameters
| Parameter | Type |
|---|---|
tileId | number |
Returns
TileGeometryInfo | null
writeTileColor
writeTileColor: (tileId, rgb) => void;Writes a raw RGB value to every vertex of a tile in the merged color buffer. No palette logic — callers decide the color.
Parameters
| Parameter | Type |
|---|---|
tileId | number |
rgb | { r: number; g: number; b: number; } |
rgb.r | number |
rgb.g | number |
rgb.b | number |
Returns
void
tileBaseVisual
tileBaseVisual: (tileId) => TileBaseVisual | null;Resolves the pre-blend visual snapshot for a tile (palette colour + PBR + emissive + submerged flag). Lets off-lib consumers run their own resource-aware blend without reading the lib's blend internals. Returns null when the tile id is unknown.
Parameters
| Parameter | Type |
|---|---|
tileId | number |
Returns
TileBaseVisual | null
tick
tick: (elapsed) => void;Advances the per-vertex shader animation clock (call each frame with elapsed seconds).
Parameters
| Parameter | Type |
|---|---|
elapsed | number |
Returns
void
dispose
dispose: () => void;Returns
void