feat(vegetation): wire arbre/sapin/buisson into LOD system

Register the three new vegetation LOD models in MAP_LOD_MODEL_PATHS and
extend VegetationSystem with per-chunk distance-based LOD selection
(mirroring MapInstancingSystem). Chunk model paths are re-evaluated on
the existing CHUNK_CONFIG.updateInterval cadence and Suspense keys
include the resolved path so a swap unmounts the previous instanced mesh
cleanly.
This commit is contained in:
Tom Boullay
2026-06-02 14:17:19 +02:00
parent 0b801888f0
commit 627c8d4eb9
2 changed files with 100 additions and 15 deletions
+3
View File
@@ -14,6 +14,9 @@ export const MAP_LOD_MODEL_PATHS = {
maison1: "/models/maison1-LOD/model.gltf",
panneauaffichage: "/models/panneauaffichage-LOD/model.gltf",
talkie: "/models/talkie-LOD/model.gltf",
arbre: "/models/arbre-LOD/model.glb",
buisson: "/models/buisson-LOD/model.glb",
sapin: "/models/sapin-LOD/model.glb",
} as const satisfies Record<string, string>;
export function getMapLodModelPath(modelName: string): string | null {