Skip to content

Function: buildLayeredInteractiveMesh()

ts
function buildLayeredInteractiveMesh(
   sim, 
   levels, 
   variation, 
   options): LayeredInteractiveMesh;

Builds the sol interactive mesh for a rocky / metallic / gaseous body.

Parameters

ParameterTypeDescription
simBodySimulationPre-computed simulation (tiles, states, palette bridge).
levelsTerrainLevel[]Palette driving vertex colours and per-tile sol heights.
variationBodyVariationDeterministic visual variation for the sol shader.
optionsLayeredInteractiveMeshOptionsPer-body channels + optional tuning.

Returns

LayeredInteractiveMesh

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