feat: enable all vegetation types and remove debug logs

This commit is contained in:
Tom Boullay
2026-05-14 00:23:18 +02:00
parent 28f7db172c
commit 225ac828df
4 changed files with 5 additions and 29 deletions
-10
View File
@@ -14,7 +14,6 @@ import { useOctreeGraphNode } from "@/hooks/three/useOctreeGraphNode";
import type { MapNode } from "@/types/editor/editor";
import type { OctreeReadyHandler } from "@/types/three/three";
import type { SceneLoadingChangeHandler } from "@/types/world/sceneLoading";
import { logger } from "@/utils/core/Logger";
import { logModelLoadError } from "@/utils/three/modelLoadLogger";
export interface GameMapCollisionNode {
@@ -109,14 +108,6 @@ export function GameMapCollision({
const collisionReady =
mapReady && settledCollisionNodeCount >= collisionNodes.length;
logger.debug("GameMapCollision", "State", {
mapReady,
collisionNodesCount: collisionNodes.length,
settledCollisionNodeCount,
collisionReady,
buildOctree,
});
const notifyLoaded = useCallback(() => {
if (loadedNotifiedRef.current) return;
@@ -133,7 +124,6 @@ export function GameMapCollision({
const handleOctreeReady = useCallback<OctreeReadyHandler>(
(octree) => {
logger.info("GameMapCollision", "Octree built, calling onOctreeReady");
onLoadingStateChange?.({
currentStep: "Collision prête",
progress: 0.92,
+5 -5
View File
@@ -4,7 +4,7 @@ export const VEGETATION_LOD = {
windFadeEnd: 70,
};
export const VEGETATION_MAX_INSTANCES = 500;
export const VEGETATION_MAX_INSTANCES = 2000;
export const VEGETATION_TYPES = {
buissons: {
@@ -12,7 +12,7 @@ export const VEGETATION_TYPES = {
modelPath: "/models/buisson/model.gltf",
castShadow: true,
receiveShadow: true,
enabled: false,
enabled: true,
windEnabled: false,
windIntensity: 1.2,
},
@@ -39,7 +39,7 @@ export const VEGETATION_TYPES = {
modelPath: "/models/champdeble/model.gltf",
castShadow: true,
receiveShadow: true,
enabled: false,
enabled: true,
windEnabled: false,
windIntensity: 1.0,
},
@@ -48,7 +48,7 @@ export const VEGETATION_TYPES = {
modelPath: "/models/champdesoja/model.gltf",
castShadow: true,
receiveShadow: true,
enabled: false,
enabled: true,
windEnabled: false,
windIntensity: 1.0,
},
@@ -57,7 +57,7 @@ export const VEGETATION_TYPES = {
modelPath: "/models/champsdetournesol/model.gltf",
castShadow: true,
receiveShadow: true,
enabled: false,
enabled: true,
windEnabled: false,
windIntensity: 0.9,
},