1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-11 20:34:02 +02:00
This commit is contained in:
syuilo
2026-05-07 15:17:49 +09:00
parent b08b3a2500
commit adc487ef78
9 changed files with 20 additions and 13 deletions

View File

@@ -41,7 +41,7 @@ export const allInOnePc = defineObject({
default: {
bodyColor: [1, 1, 1],
bezelColor: [0, 0, 0],
screenBrightness: 0.35,
screenBrightness: 0.5,
customPicture: null,
fit: 'cover',
},
@@ -88,7 +88,7 @@ export const allInOnePc = defineObject({
const applyScreenBrightness = () => {
const b = options.screenBrightness;
screenMaterial.emissiveColor = new BABYLON.Color3(b, b, b);
screenMaterial.emissiveIntensity = b * 2;
light.intensity = (5 * b) * WORLD_SCALE * WORLD_SCALE;
};
@@ -98,6 +98,7 @@ export const allInOnePc = defineObject({
if (options.customPicture != null) {
screenMaterial.unfreeze();
const tex = new BABYLON.Texture(options.customPicture, scene, false, false, undefined, () => {
screenMaterial.emissiveColor = new BABYLON.Color3(1, 1, 1);
screenMaterial.emissiveTexture = tex;
applyFit();
applyScreenBrightness();