From 1717c38c474a12500068eaf8a2635224d1e8518c Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 29 Apr 2026 23:01:45 +0200 Subject: [PATCH] Define structures for runtime terrain rendering data --- src/runtime-three/runtime-host.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 1720b33f..24b85b52 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -239,6 +239,19 @@ interface CachedMaterialTexture { textureSet: StarterMaterialTextureSet; } +interface RuntimeTerrainRenderChunkObjects { + levels: Mesh[]; + activeLevelIndex: number; + worldCenter: Vector3; + diagonal: number; +} + +interface RuntimeTerrainRenderObjects { + group: Group; + chunks: RuntimeTerrainRenderChunkObjects[]; + material: Material; +} + function createRuntimeGeometryBrush(brush: RuntimeBoxBrushInstance): Brush { const faces = Object.fromEntries( Object.entries(brush.faces).map(([faceId, face]) => [