From db90e4ebc04e138f6f805a56a79a913d88b5fcaa Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 4 May 2026 09:24:42 +0900 Subject: [PATCH] Update env.ts --- packages/frontend/src/world/room/env.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/frontend/src/world/room/env.ts b/packages/frontend/src/world/room/env.ts index 9bab8bf0d4..0625ed18fb 100644 --- a/packages/frontend/src/world/room/env.ts +++ b/packages/frontend/src/world/room/env.ts @@ -549,14 +549,14 @@ export class MuseumEnvManager extends EnvManager { this.shadowGenerators.push(shadowGeneratorForRoomLight); } - //for (const node of this.loaderResult.transformNodes.filter(node => node.name.includes('__LIGHT__'))) { - // const light = new BABYLON.SpotLight('museumEnv:SubRoomLight', node.position.scale(WORLD_SCALE), new BABYLON.Vector3(0, -1, 0), 16, 8, this.engine.scene, true); - // light.diffuse = new BABYLON.Color3(...this.engine.roomState.roomLightColor); - // light.range = cm(500); - // light.radius = cm(15); - // this.engine.lightContainer.addLight(light); - // this.subRoomLights.push(light); - //} + for (const node of this.loaderResult.transformNodes.filter(node => node.name.includes('__LIGHT__'))) { + const light = new BABYLON.SpotLight('museumEnv:SubRoomLight', node.position.scale(WORLD_SCALE), new BABYLON.Vector3(0, -1, 0), 16, 8, this.engine.scene, true); + light.diffuse = new BABYLON.Color3(...this.engine.roomState.roomLightColor); + light.range = cm(500); + light.radius = cm(15); + this.engine.lightContainer.addLight(light); + this.subRoomLights.push(light); + } for (const mesh of this.meshes) { if (SYSTEM_HEYA_MESH_NAMES.some(name => mesh.name.includes(name))) continue;