squarefeet / ShaderParticleEngine

A GLSL-heavy particle engine for THREE.js. Originally based on Stemkoski's great particle engine (see README)
http://squarefeet.github.io/ShaderParticleEngine/
MIT License
853 stars 115 forks source link

Emitter duration alterable? #109

Open jhclaura opened 8 years ago

jhclaura commented 8 years ago

First of all, thanks for the pleasant library!

A question about the duration of emitter: is it alterable during runtime? If I init the emitter with duration: 10, it kind of works when I change it to 1. But if the emitter is init with duration: 1, it's ignored when I set the number to 10. Is it a bug or is the emitter's duration just not alterable during runtime?

Thanks!

squarefeet commented 8 years ago

By the sounds of it, it might be a bug. I'm really tied up at the moment so haven't had the time available to dedicate to this project - I'll try to have a quick look asap (hopefully over the next few days) to see if it's a bug or not. If not, then it's a feature I'd like to add, as it seems like it should be a thing.

You're welcome to delve in yourself and see if you can pick it apart if you'd like, though.

Will get back to you soon!