mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
wip
This commit is contained in:
parent
d722b8e9d7
commit
624b858758
4 changed files with 11 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue