Refactor terrain chunk structure and improve geometry disposal logic

This commit is contained in:
2026-04-29 23:14:33 +02:00
parent 4caff728d1
commit 0b5de5b6bc
2 changed files with 14 additions and 6 deletions

View File

@@ -240,7 +240,8 @@ interface CachedMaterialTexture {
}
interface RuntimeTerrainRenderChunkObjects {
levels: Mesh<BufferGeometry, Material>[];
mesh: Mesh<BufferGeometry, Material>;
levelGeometries: BufferGeometry[];
activeLevelIndex: number;
worldCenter: Vector3;
diagonal: number;