Particle system for three.js as npm package

327 Views Asked by At

Is there any particle system for three.js that can be used as npm package (with import, without global namespace pollution)?

Edit: I want to use it as a module in a webpack bundling system. (without the need for global namespace variables)

1

There are 1 best solutions below

6
On BEST ANSWER

Yes. npm shader-particle-engine, github: https://github.com/squarefeet/ShaderParticleEngine

In general, the Three.js ecosystem is low quality, and if you want a package published to npm you have to do it yourself, and probably remove a lot of globals before you do :)