1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-23 18:04:11 +02:00
This commit is contained in:
syuilo
2026-02-16 15:14:37 +09:00
parent aa6c9be133
commit f58de15d45
9 changed files with 71 additions and 51 deletions

View File

@@ -11,12 +11,12 @@ export const book = defineObject({
variation: null as number | null,
},
placement: 'top',
createInstance: ({ room, o, root }) => {
createInstance: ({ options, root }) => {
return {
onInited: () => {
const mesh = root.getChildMeshes()[1] as BABYLON.Mesh;
mesh.markVerticesDataAsUpdatable(BABYLON.VertexBuffer.UVKind, true);
const index = o.options.variation ?? 0;
const index = options.variation ?? 0;
const x = index % 8;
const y = Math.floor(index / 8);