1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-01 20:14:12 +02:00

scale intensity

This commit is contained in:
syuilo
2026-04-15 09:17:11 +09:00
parent 83daf43f49
commit cf46a4af1e
9 changed files with 19 additions and 19 deletions

View File

@@ -4,7 +4,7 @@
*/
import * as BABYLON from '@babylonjs/core';
import { defineObject } from '../engine.js';
import { defineObject, WORLD_SCALE } from '../engine.js';
import { cm } from '../utility.js';
export const woodRingFloorLamp = defineObject({
@@ -83,7 +83,7 @@ export const woodRingFloorLamp = defineObject({
const applyLightBrightness = () => {
for (const light of lights) {
light.intensity = 10000 * options.lightBrightness;
light.intensity = 1 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
light.range = cm(200) * options.lightBrightness;
}
for (const lamp of lamps) {