/** * @author mr.doob / http://mrdoob.com/ * * parameters = { * color: , * map: new THREE.Texture( ), * opacity: , * blending: THREE.NormalBlending * } */ THREE.ParticleBasicMaterial = function ( parameters ) { this.color = new THREE.Color( 0xff0000 ); this.map = null; this.opacity = 1; this.blending = THREE.NormalBlending; this.offset = new THREE.Vector2(); // TODO: expose to parameters if ( parameters ) { if ( parameters.color !== undefined ) this.color.setHex( parameters.color ); if ( parameters.map !== undefined ) this.map = parameters.map; if ( parameters.opacity !== undefined ) this.opacity = parameters.opacity; if ( parameters.blending !== undefined ) this.blending = parameters.blending; } this.toString = function () { return 'THREE.ParticleBasicMaterial (
' + 'color: ' + this.color + '
' + 'map: ' + this.map + '
' + 'opacity: ' + this.opacity + '
' + 'blending: ' + this.blending + '
' + ')'; }; };