mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-09 13:06:01 +10:00
18 lines
405 B
JavaScript
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;
|