diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 0f0cbeb6..27e2796e 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -129,6 +129,8 @@ import { createFogQualityMaterial } from "../rendering/fog-material"; import { updatePlanarReflectionCamera } from "../rendering/planar-reflection"; import { createTerrainLayerBlendMaterial, + createTerrainLayerColorBlendMaterial, + getTerrainLayerPreviewColor, getTerrainLayerTexture } from "../rendering/terrain-layer-material"; import { diff --git a/src/viewport-three/viewport-host.ts b/src/viewport-three/viewport-host.ts index 3e8f64c9..de972370 100644 --- a/src/viewport-three/viewport-host.ts +++ b/src/viewport-three/viewport-host.ts @@ -9651,7 +9651,8 @@ export class ViewportHost { geometry.dispose(); } - renderObjects.material.dispose(); + renderObjects.detailMaterial.dispose(); + renderObjects.distantMaterial.dispose(); for (const material of renderObjects.debugMaterials) { material.dispose();