mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-21 23:55:34 +02:00
wip
This commit is contained in:
@@ -46,7 +46,7 @@ export const ductRailSpotLights = defineObject({
|
|||||||
default: {
|
default: {
|
||||||
bodyColor: [0.05, 0.05, 0.05],
|
bodyColor: [0.05, 0.05, 0.05],
|
||||||
lightColor: [1, 0.5, 0.2],
|
lightColor: [1, 0.5, 0.2],
|
||||||
lightBrightness: 0.5,
|
lightBrightness: 0.2,
|
||||||
angleV: 0.75,
|
angleV: 0.75,
|
||||||
angleH: 0.5,
|
angleH: 0.5,
|
||||||
},
|
},
|
||||||
@@ -88,8 +88,8 @@ export const ductRailSpotLights = defineObject({
|
|||||||
|
|
||||||
const applyLightBrightness = () => {
|
const applyLightBrightness = () => {
|
||||||
for (const light of lights) {
|
for (const light of lights) {
|
||||||
light.intensity = 3 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
|
light.intensity = 5 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
|
||||||
light.range = cm(300) * getLightRangeFactorByGraphicsQuality(graphicsQuality);
|
light.range = remap(options.lightBrightness, 0, 1, cm(200), cm(400)) * getLightRangeFactorByGraphicsQuality(graphicsQuality);
|
||||||
}
|
}
|
||||||
for (const lamp of lamps) {
|
for (const lamp of lamps) {
|
||||||
const emissive = lamp.material as BABYLON.PBRMaterial;
|
const emissive = lamp.material as BABYLON.PBRMaterial;
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export const spotLight = defineObject({
|
|||||||
default: {
|
default: {
|
||||||
bodyColor: [0.05, 0.05, 0.05],
|
bodyColor: [0.05, 0.05, 0.05],
|
||||||
lightColor: [1, 0.5, 0.2],
|
lightColor: [1, 0.5, 0.2],
|
||||||
lightBrightness: 0.5,
|
lightBrightness: 0.2,
|
||||||
angleV: 0.75,
|
angleV: 0.75,
|
||||||
angleH: 0.5,
|
angleH: 0.5,
|
||||||
},
|
},
|
||||||
@@ -79,8 +79,8 @@ export const spotLight = defineObject({
|
|||||||
applyLightColor();
|
applyLightColor();
|
||||||
|
|
||||||
const applyLightBrightness = () => {
|
const applyLightBrightness = () => {
|
||||||
light.intensity = 3 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
|
light.intensity = 5 * options.lightBrightness * WORLD_SCALE * WORLD_SCALE;
|
||||||
light.range = cm(300) * getLightRangeFactorByGraphicsQuality(graphicsQuality);
|
light.range = remap(options.lightBrightness, 0, 1, cm(200), cm(400)) * getLightRangeFactorByGraphicsQuality(graphicsQuality);
|
||||||
const emissive = lamp.material as BABYLON.PBRMaterial;
|
const emissive = lamp.material as BABYLON.PBRMaterial;
|
||||||
emissive.emissiveIntensity = options.lightBrightness * 100;
|
emissive.emissiveIntensity = options.lightBrightness * 100;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user