1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-22 01:05:40 +02:00
This commit is contained in:
syuilo
2026-04-20 20:19:18 +09:00
parent f04799a4f5
commit b21ad59db3
8 changed files with 6 additions and 8 deletions

View File

@@ -33,7 +33,7 @@ export const tv = defineObject({
placement: 'top',
hasCollisions: true,
hasTexture: true,
createInstance: ({ options, room, model, scene }) => {
createInstance: ({ options, room, model, scene, timer }) => {
const matrix = model.root.getWorldMatrix(true);
const scale = new BABYLON.Vector3();
matrix.decompose(scale);
@@ -52,7 +52,7 @@ export const tv = defineObject({
const screenMaterial = model.findMaterial('__X_SCREEN__');
const { dispose: disposeTv } = initTv(room, screenMesh);
const { dispose: disposeTv } = initTv(scene, screenMesh, timer);
//const videoTexture = new BABYLON.VideoTexture('', 'http://syu-win.local:3000/files/97986924-b99e-4fe1-993d-9caf010cca59', room.scene, false, true); ;
//screenMaterial.emissiveTexture = videoTexture;