mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 21:15:56 +10:00
17 lines
339 B
JavaScript
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;
|