Const
Global particle pool instance
Shared pool for all particle effects in the application. Use this for most cases unless you need a separate pool.
import { globalParticlePool } from '@/utils/particlePool';const material = new THREE.PointsMaterial({ color: 0xff0000 });const points = globalParticlePool.acquire(100, material); Copy
import { globalParticlePool } from '@/utils/particlePool';const material = new THREE.PointsMaterial({ color: 0xff0000 });const points = globalParticlePool.acquire(100, material);
Global particle pool instance
Shared pool for all particle effects in the application. Use this for most cases unless you need a separate pool.