mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 20:54:13 +02:00
Update wallMountSpotLight.ts
This commit is contained in:
@@ -82,9 +82,9 @@ export const wallMountSpotLight = defineObject({
|
|||||||
|
|
||||||
const applyLightBrightness = () => {
|
const applyLightBrightness = () => {
|
||||||
light.intensity = 1 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
|
light.intensity = 1 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
|
||||||
light.range = cm(200) * options.lightBrightness;
|
light.range = cm(200);
|
||||||
const emissive = lamp.material as BABYLON.PBRMaterial;
|
const emissive = lamp.material as BABYLON.PBRMaterial;
|
||||||
emissive.emissiveIntensity = options.lightBrightness * 10;
|
emissive.emissiveIntensity = options.lightBrightness * 20;
|
||||||
};
|
};
|
||||||
|
|
||||||
applyLightBrightness();
|
applyLightBrightness();
|
||||||
|
|||||||
Reference in New Issue
Block a user