Files
three.js/src/objects/ParticleSystem.js
T
2011-02-26 10:52:35 +00:00

18 lines
405 B
JavaScript

/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.ParticleSystem = function ( geometry, materials ) {
THREE.Object3D.call( this );
this.geometry = geometry;
this.materials = materials instanceof Array ? materials : [ materials ];
this.sortParticles = false;
};
THREE.ParticleSystem.prototype = new THREE.Object3D();
THREE.ParticleSystem.prototype.constructor = THREE.ParticleSystem;