refactor: remove vegetation instance limit (will be handled by chunks later)
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user