mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-11 20:34:02 +02:00
wip
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user