MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / getNextParticleInPool

Function getNextParticleInPool

webgl/js/three.min.js:4033–4052  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4031 }
4032
4033 function getNextParticleInPool() {
4034
4035 var particle;
4036
4037 if ( _particleCount === _particlePool.length ) {
4038
4039 particle = new THREE.RenderableParticle();
4040 _particlePool.push( particle );
4041
4042 } else {
4043
4044 particle = _particlePool[ _particleCount ];
4045
4046 }
4047
4048 _particleCount ++;
4049
4050 return particle;
4051
4052 }
4053
4054 //
4055

Callers 1

three.min.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected