1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 17:35:40 +02:00
Files
misskey/packages/frontend/src/utility/room/objects/tv.ts
syuilo f367bc37f8 wip
2026-04-03 13:45:43 +09:00

29 lines
601 B
TypeScript

/*
* SPDX-FileCopyrightText: syuilo and misskey-project
* SPDX-License-Identifier: AGPL-3.0-only
*/
import * as BABYLON from '@babylonjs/core';
import { defineObject } from '../engine.js';
import { initTv } from '../utility.js';
export const tv = defineObject({
id: 'tv',
name: 'TV',
options: {
schema: {},
default: {},
},
placement: 'top',
createInstance: ({ room, model }) => {
const screenMesh = model.findMesh('__TV_SCREEN__');
screenMesh.markVerticesDataAsUpdatable(BABYLON.VertexBuffer.UVKind, true);
initTv(room, screenMesh);
return {
interactions: {},
};
},
});