From a0356d8d4d979c864520145357c7e0df12af4229 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Fri, 20 Feb 2026 16:59:40 +0900 Subject: [PATCH] wip --- packages/frontend/src/utility/room/engine.ts | 6 +++--- packages/frontend/src/utility/room/objects/colorBox.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/utility/room/engine.ts b/packages/frontend/src/utility/room/engine.ts index f160fa8174..98e3df1ecb 100644 --- a/packages/frontend/src/utility/room/engine.ts +++ b/packages/frontend/src/utility/room/engine.ts @@ -307,11 +307,11 @@ export class RoomEngine { this.roomLight.shadowMinZ = 10/*cm*/; this.roomLight.shadowMaxZ = 300/*cm*/; - this.shadowGenerator1 = new BABYLON.ShadowGenerator(2048, this.roomLight); + this.shadowGenerator1 = new BABYLON.ShadowGenerator(4096, this.roomLight); this.shadowGenerator1.forceBackFacesOnly = true; this.shadowGenerator1.bias = 0.0001; this.shadowGenerator1.usePercentageCloserFiltering = true; - this.shadowGenerator1.useContactHardeningShadow = true; + //this.shadowGenerator1.useContactHardeningShadow = true; const sunLight = new BABYLON.DirectionalLight('sunLight', new BABYLON.Vector3(0.2, -1, -1), this.scene); sunLight.position = new BABYLON.Vector3(-20, 1000, 1000); @@ -320,7 +320,7 @@ export class RoomEngine { sunLight.shadowMinZ = 1000/*cm*/; sunLight.shadowMaxZ = 2000/*cm*/; - this.shadowGenerator2 = new BABYLON.ShadowGenerator(4092, sunLight); + this.shadowGenerator2 = new BABYLON.ShadowGenerator(4096, sunLight); this.shadowGenerator2.forceBackFacesOnly = true; this.shadowGenerator2.bias = 0.0001; this.shadowGenerator2.usePercentageCloserFiltering = true; diff --git a/packages/frontend/src/utility/room/objects/colorBox.ts b/packages/frontend/src/utility/room/objects/colorBox.ts index 7f9b0b0374..bca8cb6d01 100644 --- a/packages/frontend/src/utility/room/objects/colorBox.ts +++ b/packages/frontend/src/utility/room/objects/colorBox.ts @@ -17,7 +17,7 @@ export const colorBox = defineObject({ }, }, default: { - color: [1, 1, 1], + color: [0.75, 0.75, 0.75], }, }, placement: 'floor',