1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-20 21:05:28 +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, createPlaneUvMapper } from '../utility.js';
export const allInOnePc = defineObject({
@@ -107,7 +107,7 @@ export const allInOnePc = defineObject({
const applyScreenBrightness = () => {
const b = options.screenBrightness;
screenMaterial.emissiveColor = new BABYLON.Color3(b, b, b);
light.intensity = 50000 * b;
light.intensity = (5 * b) * WORLD_SCALE * WORLD_SCALE;
};
applyScreenBrightness();