1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 14:05:35 +02:00
This commit is contained in:
syuilo
2026-05-04 19:32:47 +09:00
parent a9dd5fd5bf
commit 2a1cd5c197
2 changed files with 6 additions and 6 deletions

View File

@@ -46,7 +46,7 @@ export const ductRailSpotLights = defineObject({
default: {
bodyColor: [0.05, 0.05, 0.05],
lightColor: [1, 0.5, 0.2],
lightBrightness: 0.5,
lightBrightness: 0.2,
angleV: 0.75,
angleH: 0.5,
},
@@ -88,8 +88,8 @@ export const ductRailSpotLights = defineObject({
const applyLightBrightness = () => {
for (const light of lights) {
light.intensity = 3 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
light.range = cm(300) * getLightRangeFactorByGraphicsQuality(graphicsQuality);
light.intensity = 5 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
light.range = remap(options.lightBrightness, 0, 1, cm(200), cm(400)) * getLightRangeFactorByGraphicsQuality(graphicsQuality);
}
for (const lamp of lamps) {
const emissive = lamp.material as BABYLON.PBRMaterial;

View File

@@ -46,7 +46,7 @@ export const spotLight = defineObject({
default: {
bodyColor: [0.05, 0.05, 0.05],
lightColor: [1, 0.5, 0.2],
lightBrightness: 0.5,
lightBrightness: 0.2,
angleV: 0.75,
angleH: 0.5,
},
@@ -79,8 +79,8 @@ export const spotLight = defineObject({
applyLightColor();
const applyLightBrightness = () => {
light.intensity = 3 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
light.range = cm(300) * getLightRangeFactorByGraphicsQuality(graphicsQuality);
light.intensity = 5 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
light.range = remap(options.lightBrightness, 0, 1, cm(200), cm(400)) * getLightRangeFactorByGraphicsQuality(graphicsQuality);
const emissive = lamp.material as BABYLON.PBRMaterial;
emissive.emissiveIntensity = options.lightBrightness * 100;
};