mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-06-25 17:10:43 +00:00
Update engine.ts
This commit is contained in:
parent
6ee52259c4
commit
6c82e0fef8
1 changed files with 2 additions and 0 deletions
|
|
@ -1167,6 +1167,7 @@ export class RoomEngine extends EventEmitter {
|
|||
|
||||
private getPutParticleSystem() {
|
||||
if (this.putParticleSystem != null) return this.putParticleSystem;
|
||||
this.sr.disableSnapshotRendering();
|
||||
this.putParticleSystem = new BABYLON.ParticleSystem('', 64, this.scene);
|
||||
this.putParticleSystem.particleTexture = new BABYLON.Texture('/client-assets/room/steam.png');
|
||||
this.putParticleSystem.createCylinderEmitter(cm(5), cm(1), cm(5));
|
||||
|
|
@ -1187,6 +1188,7 @@ export class RoomEngine extends EventEmitter {
|
|||
this.putParticleSystem.colorDead = new BABYLON.Color4(1, 1, 1, 0);
|
||||
this.putParticleSystem.targetStopDuration = 0.05;
|
||||
this.sr.fixParticleSystem(this.putParticleSystem);
|
||||
this.sr.enableSnapshotRendering();
|
||||
return this.putParticleSystem;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue