mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-26 07:54:13 +02:00
Update ductRailSpotLights.ts
This commit is contained in:
@@ -67,7 +67,7 @@ export const ductRailSpotLights = defineObject({
|
|||||||
for (const lamp of lamps) {
|
for (const lamp of lamps) {
|
||||||
const light = new BABYLON.SpotLight('', new BABYLON.Vector3(cm(0), cm(0), 0), new BABYLON.Vector3(0, -1, 0), Math.PI / 1, 2, scene, room?.lightContainer != null);
|
const light = new BABYLON.SpotLight('', new BABYLON.Vector3(cm(0), cm(0), 0), new BABYLON.Vector3(0, -1, 0), Math.PI / 1, 2, scene, room?.lightContainer != null);
|
||||||
light.parent = lamp;
|
light.parent = lamp;
|
||||||
light.radius = cm(5);
|
light.radius = cm(8);
|
||||||
if (room?.lightContainer != null) room.lightContainer.addLight(light);
|
if (room?.lightContainer != null) room.lightContainer.addLight(light);
|
||||||
lights.push(light);
|
lights.push(light);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user