diff --git a/src/world/vegetation/useVegetationData.ts b/src/world/vegetation/useVegetationData.ts index 3a81441..89350ac 100644 --- a/src/world/vegetation/useVegetationData.ts +++ b/src/world/vegetation/useVegetationData.ts @@ -3,7 +3,6 @@ import type { MapNode } from "@/types/editor/editor"; import type { Vector3Tuple } from "@/types/three/three"; import { getMapNodes, loadMapSceneData } from "@/utils/map/loadMapSceneData"; import { - VEGETATION_MAX_INSTANCES, VEGETATION_TYPES, type VegetationType, } from "@/world/vegetation/vegetationConfig"; @@ -32,7 +31,6 @@ function extractVegetationData(mapNodes: MapNode[]): VegetationData { const instances = mapNodes .filter((node) => node.name === config.mapName) - .slice(0, VEGETATION_MAX_INSTANCES) .map(mapNodeToInstance); if (instances.length > 0) { diff --git a/src/world/vegetation/vegetationConfig.ts b/src/world/vegetation/vegetationConfig.ts index f1980c3..4d4e567 100644 --- a/src/world/vegetation/vegetationConfig.ts +++ b/src/world/vegetation/vegetationConfig.ts @@ -4,8 +4,6 @@ export const VEGETATION_LOD = { windFadeEnd: 70, }; -export const VEGETATION_MAX_INSTANCES = 2000; - export const VEGETATION_TYPES = { buissons: { mapName: "buissons",