Feat/map-environment #6

Merged
math-pixel merged 116 commits from feat/map-environment into develop 2026-05-29 00:00:51 +00:00
2 changed files with 0 additions and 4 deletions
Showing only changes of commit 242a3dcd37 - Show all commits
@@ -3,7 +3,6 @@ import type { MapNode } from "@/types/editor/editor";
import type { Vector3Tuple } from "@/types/three/three"; import type { Vector3Tuple } from "@/types/three/three";
import { getMapNodes, loadMapSceneData } from "@/utils/map/loadMapSceneData"; import { getMapNodes, loadMapSceneData } from "@/utils/map/loadMapSceneData";
import { import {
VEGETATION_MAX_INSTANCES,
VEGETATION_TYPES, VEGETATION_TYPES,
type VegetationType, type VegetationType,
} from "@/world/vegetation/vegetationConfig"; } from "@/world/vegetation/vegetationConfig";
@@ -32,7 +31,6 @@ function extractVegetationData(mapNodes: MapNode[]): VegetationData {
const instances = mapNodes const instances = mapNodes
.filter((node) => node.name === config.mapName) .filter((node) => node.name === config.mapName)
.slice(0, VEGETATION_MAX_INSTANCES)
.map(mapNodeToInstance); .map(mapNodeToInstance);
if (instances.length > 0) { if (instances.length > 0) {
-2
View File
@@ -4,8 +4,6 @@ export const VEGETATION_LOD = {
windFadeEnd: 70, windFadeEnd: 70,
}; };
export const VEGETATION_MAX_INSTANCES = 2000;
export const VEGETATION_TYPES = { export const VEGETATION_TYPES = {
buissons: { buissons: {
mapName: "buissons", mapName: "buissons",