From bf127ab8f8f6e668c0f6c8780546d84d14304f66 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sat, 2 May 2026 11:30:40 +0200 Subject: [PATCH] Include foliage blocker mask in scene bounds calculation --- src/runtime-three/runtime-scene-build.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/runtime-scene-build.ts b/src/runtime-three/runtime-scene-build.ts index 8e875da7..eb29cc05 100644 --- a/src/runtime-three/runtime-scene-build.ts +++ b/src/runtime-three/runtime-scene-build.ts @@ -62,6 +62,7 @@ import { } from "../document/paths"; import { cloneTerrain, + createEmptyTerrainFoliageBlockerMask, getTerrainBounds, getTerrainFootprintDepth, getTerrainFootprintWidth, @@ -1188,7 +1189,8 @@ function getRuntimeTerrainSceneBounds(terrain: RuntimeTerrain): RuntimeSceneBoun ...terrain, kind: "terrain", enabled: true, - foliageMasks: {} + foliageMasks: {}, + foliageBlockerMask: createEmptyTerrainFoliageBlockerMask(terrain) }); const min = cloneVec3(bounds.min); const max = cloneVec3(bounds.max);