Particle.js 431 B

1234567891011121314151617181920212223
  1. /**
  2. * @author mrdoob / http://mrdoob.com/
  3. */
  4. THREE.Particle = function ( material ) {
  5. THREE.Object3D.call( this );
  6. this.material = material;
  7. };
  8. THREE.Particle.prototype = Object.create( THREE.Object3D.prototype );
  9. THREE.Particle.prototype.clone = function ( object ) {
  10. if ( object === undefined ) object = new THREE.Particle( this.material );
  11. THREE.Object3D.prototype.clone.call( this, object );
  12. return object;
  13. };