From 489067301361104f03096e3553ccff7141116214 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Sat, 9 May 2026 14:28:14 +0900 Subject: [PATCH] Update previewEngine.ts --- packages/frontend/src/world/room/previewEngine.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/frontend/src/world/room/previewEngine.ts b/packages/frontend/src/world/room/previewEngine.ts index fbaee90fd0..ba8c96dc88 100644 --- a/packages/frontend/src/world/room/previewEngine.ts +++ b/packages/frontend/src/world/room/previewEngine.ts @@ -62,19 +62,14 @@ export class RoomObjectPreviewEngine { this.envMapIndoor.boundingBoxSize = new BABYLON.Vector3(cm(500), cm(500), cm(500)); this.envMapIndoor.level = 0.6; - const ambientLight = new BABYLON.HemisphericLight('ambientLight', new BABYLON.Vector3(0, 1, -0.5), this.scene); - ambientLight.diffuse = new BABYLON.Color3(1.0, 1.0, 1.0); - ambientLight.intensity = 0.3; - //ambientLight.intensity = 0; - this.roomLight = new BABYLON.SpotLight('roomLight', new BABYLON.Vector3(cm(50), cm(249), cm(50)), new BABYLON.Vector3(0, -1, 0), 16, 8, this.scene); this.roomLight.diffuse = new BABYLON.Color3(1.0, 0.9, 0.8); this.roomLight.shadowMinZ = cm(10); this.roomLight.shadowMaxZ = cm(500); this.roomLight.radius = cm(30); - this.roomLight.intensity = 10 * WORLD_SCALE * WORLD_SCALE; + this.roomLight.intensity = 15 * WORLD_SCALE * WORLD_SCALE; - this.shadowGenerator = new BABYLON.ShadowGenerator(1024, this.roomLight); + this.shadowGenerator = new BABYLON.ShadowGenerator(2048, this.roomLight); this.shadowGenerator.forceBackFacesOnly = true; this.shadowGenerator.bias = 0.0001; this.shadowGenerator.usePercentageCloserFiltering = true;