From c72054283c81821968940a100a0473ca6e8cc30d Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 18:50:10 +0200 Subject: [PATCH] Calculate and apply road edge seams during scene setup --- src/runtime-three/runtime-host.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 8bb4a756..0fc03aaf 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -4348,6 +4348,11 @@ export class RuntimeHost { private rebuildRoadSurfaces(runtimeScene: RuntimeSceneDefinition) { this.clearRoadSurfaces(); + const roadEdgeSeamsByPath = resolveSplineCorridorJunctionRoadEdgeSeams({ + junctions: runtimeScene.splineCorridorJunctions, + paths: runtimeScene.paths, + terrains: runtimeScene.foliage.terrains + }); for (const path of runtimeScene.paths) { if (!path.enabled || !path.visible || !path.road.enabled) { @@ -4383,7 +4388,8 @@ export class RuntimeHost { terrains: runtimeScene.foliage.terrains, clipIntervals: runtimeScene.splineCorridorClipIntervalsByPath.get( path.id - ) + ), + junctionEdgeSeams: roadEdgeSeamsByPath.get(path.id) }); if (edgeGeometry === null) {