This commit is contained in:
syuilo 2026-05-28 09:56:40 +09:00
commit 624b858758
4 changed files with 11 additions and 3 deletions

View file

@ -32,6 +32,8 @@ export const allInOnePc = defineObject(allInOnePc_schema, {
screenMaterial.ambientColor = new BABYLON.Color3(0, 0, 0);
screenMaterial.albedoColor = new BABYLON.Color3(0, 0, 0);
screenMaterial.emissiveColor = new BABYLON.Color3(1, 1, 1);
screenMaterial.roughness = 0;
screenMaterial.metallic = 0;
const textureManager = createTextureManager(screenMesh, () => 50 / 27.5, scene);

View file

@ -13,6 +13,8 @@ export const djPlayer = defineObject(djPlayer_schema, {
const screenMesh = model.findMesh('__X_SCREEN__');
const screenMaterial = model.findMaterial('__X_SCREEN__');
screenMaterial.emissiveColor = new BABYLON.Color3(1, 1, 1);
screenMaterial.roughness = 0;
screenMaterial.metallic = 0;
normalizeUvToSquare(screenMesh);

View file

@ -4,8 +4,8 @@
*/
import * as BABYLON from '@babylonjs/core';
import { createTextureManager, defineObject } from '../object.js';
import { handheldGameConsole_schema } from 'misskey-world/src/room/objects/handheldGameConsole.schema.js';
import { createTextureManager, defineObject } from '../object.js';
export const handheldGameConsole = defineObject(handheldGameConsole_schema, {
createInstance: async ({ scene, options, model }) => {
@ -16,6 +16,8 @@ export const handheldGameConsole = defineObject(handheldGameConsole_schema, {
screenMaterial.emissiveColor = new BABYLON.Color3(1, 1, 1);
screenMaterial.ambientColor = new BABYLON.Color3(0, 0, 0);
screenMaterial.albedoColor = new BABYLON.Color3(0, 0, 0);
screenMaterial.roughness = 0;
screenMaterial.metallic = 0;
const textureManager = createTextureManager(screenMesh, () => 20 / 10.4, scene);

View file

@ -4,10 +4,10 @@
*/
import * as BABYLON from '@babylonjs/core';
import { createTextureManager, defineObject } from '../object.js';
import { cm, WORLD_SCALE } from 'misskey-world/src/utility.js';
import { getLightRangeFactorByGraphicsQuality } from '../utility.js';
import { laptopPc_schema } from 'misskey-world/src/room/objects/laptopPc.schema.js';
import { createTextureManager, defineObject } from '../object.js';
import { getLightRangeFactorByGraphicsQuality } from '../utility.js';
export const laptopPc = defineObject(laptopPc_schema, {
createInstance: async ({ lc, sr, scene, options, model, graphicsQuality }) => {
@ -32,6 +32,8 @@ export const laptopPc = defineObject(laptopPc_schema, {
screenMaterial.emissiveColor = new BABYLON.Color3(1, 1, 1);
screenMaterial.ambientColor = new BABYLON.Color3(0, 0, 0);
screenMaterial.albedoColor = new BABYLON.Color3(0, 0, 0);
screenMaterial.roughness = 0;
screenMaterial.metallic = 0;
const textureManager = createTextureManager(screenMesh, () => 31 / 19, scene);