1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-18 14:15:34 +02:00
This commit is contained in:
syuilo
2026-04-03 18:00:05 +09:00
parent 3873eb0cd7
commit 4efe4fb519
3 changed files with 37 additions and 24 deletions

View File

@@ -49,7 +49,7 @@ export const blind = defineObject({
const blade = model.findMesh('Blade');
blade.rotation = new BABYLON.Vector3(options.angle, 0, 0);
let blades = [] as BABYLON.Mesh[];
let blades = [] as BABYLON.InstancedMesh[];
const applyOpeningState = () => {
for (const b of blades) {
@@ -58,7 +58,7 @@ export const blind = defineObject({
blades = [];
for (let i = 0; i < options.blades; i++) {
const b = blade.clone();
const b = blade.createInstance('blade_' + i);
if (i / options.blades < temp.open) {
b.position.y -= (i * 4/*cm*/) / WORLD_SCALE;
} else {