1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-30 22:43:57 +02:00
This commit is contained in:
syuilo
2026-03-26 22:20:34 +09:00
parent 9ffd8d777e
commit 9bc0d7b361
4 changed files with 26 additions and 5 deletions

View File

@@ -30,6 +30,12 @@ export function yuge(scene: BABYLON.Scene, mesh: BABYLON.Mesh, offset: BABYLON.V
ps.colorDead = new BABYLON.Color4(1, 1, 1, 0);
ps.preWarmCycles = Math.random() * 1000;
ps.start();
// dispose
return () => {
ps.stop();
emitter.dispose();
};
}
const _assumedFramesPerSecond = 60;