From 29491997eafb56acbaafd89a735b28fe7fd4eea2 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Mon, 4 May 2026 09:22:29 +0900 Subject: [PATCH] wip --- packages/frontend/src/world/room/objects/allInOnePc.ts | 1 + packages/frontend/src/world/room/objects/desktopPc.ts | 1 + packages/frontend/src/world/room/objects/laptopPc.ts | 1 + packages/frontend/src/world/room/objects/lavaLamp.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/frontend/src/world/room/objects/allInOnePc.ts b/packages/frontend/src/world/room/objects/allInOnePc.ts index 26b5d5e049..71357190d7 100644 --- a/packages/frontend/src/world/room/objects/allInOnePc.ts +++ b/packages/frontend/src/world/room/objects/allInOnePc.ts @@ -53,6 +53,7 @@ export const allInOnePc = defineObject({ const scale = new BABYLON.Vector3(); matrix.decompose(scale); + // TODO: graphicsQualityがLOWならそもそも追加しない const light = new BABYLON.SpotLight('', new BABYLON.Vector3(cm(0), cm(30) / Math.abs(scale.y), 0), new BABYLON.Vector3(0, 0, 1), Math.PI / 1, 2, scene, room?.lightContainer != null); light.parent = model.root; light.diffuse = new BABYLON.Color3(1.0, 1.0, 1.0); diff --git a/packages/frontend/src/world/room/objects/desktopPc.ts b/packages/frontend/src/world/room/objects/desktopPc.ts index ada39c4d79..a3f79e98ef 100644 --- a/packages/frontend/src/world/room/objects/desktopPc.ts +++ b/packages/frontend/src/world/room/objects/desktopPc.ts @@ -51,6 +51,7 @@ export const desktopPc = defineObject({ hasCollisions: true, canPreMeshesMerging: true, createInstance: ({ options, model, root, scene, room, graphicsQuality }) => { + // TODO: graphicsQualityがLOWならそもそも追加しない const light1 = new BABYLON.SpotLight('', new BABYLON.Vector3(0, cm(10), cm(22)), new BABYLON.Vector3(0, 0, 1), Math.PI / 1, 2, scene, room?.lightContainer != null); light1.parent = root; light1.intensity = 0.05 * WORLD_SCALE * WORLD_SCALE; diff --git a/packages/frontend/src/world/room/objects/laptopPc.ts b/packages/frontend/src/world/room/objects/laptopPc.ts index 7d4d49a3a4..851425fc4a 100644 --- a/packages/frontend/src/world/room/objects/laptopPc.ts +++ b/packages/frontend/src/world/room/objects/laptopPc.ts @@ -65,6 +65,7 @@ export const laptopPc = defineObject({ const screenMesh = model.findMesh('__X_SCREEN__'); const hutaNode = model.findTransformNode('__X_HUTA__'); + // TODO: graphicsQualityがLOWならそもそも追加しない const light = new BABYLON.SpotLight('', new BABYLON.Vector3(cm(0), cm(10) / Math.abs(scale.y), 0), new BABYLON.Vector3(0, 0, 1), Math.PI / 1, 2, scene, room?.lightContainer != null); light.parent = hutaNode; light.diffuse = new BABYLON.Color3(1.0, 1.0, 1.0); diff --git a/packages/frontend/src/world/room/objects/lavaLamp.ts b/packages/frontend/src/world/room/objects/lavaLamp.ts index 820e8352a8..11d0cedb3a 100644 --- a/packages/frontend/src/world/room/objects/lavaLamp.ts +++ b/packages/frontend/src/world/room/objects/lavaLamp.ts @@ -58,6 +58,7 @@ export const lavaLamp = defineObject({ applyGlassColor(); + // TODO: graphicsQualityがLOWならそもそも追加しない const light = new BABYLON.PointLight('lavaLampLight', new BABYLON.Vector3(0, cm(11), 0), scene, room?.lightContainer != null); light.parent = root; light.intensity = 0.03 * WORLD_SCALE * WORLD_SCALE;