Add method to clear local lights in runtime-host.ts

This commit is contained in:
2026-03-31 20:07:37 +02:00
parent bfd6abfae6
commit 386fbdfdc3

View File

@@ -397,6 +397,14 @@ export class RuntimeHost {
return texture;
}
private clearLocalLights() {
for (const renderGroup of this.localLightObjects.values()) {
this.localLightGroup.remove(renderGroup);
}
this.localLightObjects.clear();
}
private clearBrushMeshes() {
for (const mesh of this.brushMeshes.values()) {
this.brushGroup.remove(mesh);