Function: buildCoreMesh()
ts
function buildCoreMesh(cfg): CoreMesh;Builds the molten inner-core sphere shared by every non-stellar body.
The core sits at radius * coreRadiusRatio and is rendered with a procedural fire shader (warped FBM + sparkle layer over a deep-red → white-hot palette). A THREE.PointLight is parented to the mesh so the light follows the body's transform and only escapes the planet through tiles that have been mined down to band 0.
The mesh is non-interactive (raycast = () => {}) — tile picking happens on the surrounding sol layer.
Parameters
| Parameter | Type | Description |
|---|---|---|
cfg | CoreMeshConfig | Core mesh configuration (radius, optional ratio). |
Returns
The mesh, its accompanying light, world radius, per-frame tick and a disposal hook.