diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 1977d3f7..54334e62 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -2778,6 +2778,14 @@ export class RuntimeHost { this.localLightObjects.clear(); } + private clearLightVolumes() { + for (const renderObjects of this.lightVolumeObjects.values()) { + this.lightVolumeGroup.remove(renderObjects.group); + } + + this.lightVolumeObjects.clear(); + } + private clearBrushMeshes() { for (const mesh of this.brushMeshes.values()) { this.brushGroup.remove(mesh);