Files
three.js/src/objects/Particle.js
T
2010-12-24 21:24:58 +00:00

17 lines
339 B
JavaScript

/**
* @author mr.doob / http://mrdoob.com/
*/
THREE.Particle = function ( materials ) {
THREE.Object3D.call( this );
this.materials = materials instanceof Array ? materials : [ materials ];
this.autoUpdateMatrix = false;
};
THREE.Particle.prototype = new THREE.Object3D();
THREE.Particle.prototype.constructor = THREE.Particle;