feat(map): generate path tiles from terrain colors

This commit is contained in:
Tom Boullay
2026-05-25 17:08:07 +02:00
parent 6d178dc59e
commit f54e71fc03
7 changed files with 132 additions and 1 deletions
+3
View File
@@ -40,6 +40,8 @@ function createTerrainSurfaceBounds(
return {
minX: box.min.x,
maxX: box.max.x,
minY: box.min.y,
maxY: box.max.y,
minZ: box.min.z,
maxZ: box.max.z,
};
@@ -58,6 +60,7 @@ export function useTerrainSurfaceData(): TerrainSurfaceData | null {
return {
bounds: createTerrainSurfaceBounds(scene),
imageData,
raycastTarget: scene,
};
}, [scene]);
}