12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /**
- * @author mr.doob / http://mrdoob.com/
- * @author alteredq / http://alteredqualia.com/
- *
- * parameters = {
- * color: <hex>,
- * opacity: <float>,
- * map: new THREE.Texture( <Image> ),
- *
- * size: <float>,
- *
- * blending: THREE.NormalBlending,
- * depthTest: <bool>,
- *
- * vertexColors: <bool>,
- *
- * fog: <bool>
- * }
- */
- THREE.ParticleBasicMaterial = function ( parameters ) {
- THREE.Material.call( this );
- this.color = new THREE.Color( 0xffffff );
- this.map = null;
- this.size = 1;
- this.sizeAttenuation = true;
- this.vertexColors = false;
- this.fog = true;
- this.setValues( parameters );
- };
- THREE.ParticleBasicMaterial.prototype = Object.create( THREE.Material.prototype );
- THREE.ParticleBasicMaterial.prototype.clone = function () {
- return new THREE.ParticleBasicMaterial( this );
- };
|