ParticleSystem.js 405 B

1234567891011121314151617
  1. /**
  2. * @author alteredq / http://alteredqualia.com/
  3. */
  4. THREE.ParticleSystem = function ( geometry, materials ) {
  5. THREE.Object3D.call( this );
  6. this.geometry = geometry;
  7. this.materials = materials instanceof Array ? materials : [ materials ];
  8. this.sortParticles = false;
  9. };
  10. THREE.ParticleSystem.prototype = new THREE.Object3D();
  11. THREE.ParticleSystem.prototype.constructor = THREE.ParticleSystem;
粤ICP备19079148号