| 1234567891011121314151617181920212223242526272829 |
- /**
- * @author alteredq / http://alteredqualia.com/
- */
- THREE.ParticleSystem = function ( geometry, material ) {
- THREE.Object3D.call( this );
- this.geometry = geometry !== undefined ? geometry : new THREE.Geometry();
- this.material = material !== undefined ? material : new THREE.ParticleSystemMaterial( { color: Math.random() * 0xffffff } );
- this.sortParticles = false;
- this.frustumCulled = false;
- };
- THREE.ParticleSystem.prototype = Object.create( THREE.Object3D.prototype );
- THREE.ParticleSystem.prototype.clone = function ( object ) {
- if ( object === undefined ) object = new THREE.ParticleSystem( this.geometry, this.material );
- object.sortParticles = this.sortParticles;
- THREE.Object3D.prototype.clone.call( this, object );
- return object;
- };
|