Update terrain layer material imports and dispose logic in ViewportHost

This commit is contained in:
2026-04-29 23:17:41 +02:00
parent 3089501d28
commit 2f81d81475
2 changed files with 4 additions and 1 deletions

View File

@@ -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();