|
@@ -7,6 +7,7 @@ import { Color } from '../math/Color.js';
|
|
* parameters = {
|
|
* parameters = {
|
|
* color: <hex>,
|
|
* color: <hex>,
|
|
* map: new THREE.Texture( <Image> ),
|
|
* map: new THREE.Texture( <Image> ),
|
|
|
|
+ * alphaMap: new THREE.Texture( <Image> ),
|
|
* rotation: <float>,
|
|
* rotation: <float>,
|
|
* sizeAttenuation: <bool>
|
|
* sizeAttenuation: <bool>
|
|
* }
|
|
* }
|
|
@@ -19,8 +20,11 @@ function SpriteMaterial( parameters ) {
|
|
this.type = 'SpriteMaterial';
|
|
this.type = 'SpriteMaterial';
|
|
|
|
|
|
this.color = new Color( 0xffffff );
|
|
this.color = new Color( 0xffffff );
|
|
|
|
+
|
|
this.map = null;
|
|
this.map = null;
|
|
|
|
|
|
|
|
+ this.alphaMap = null;
|
|
|
|
+
|
|
this.rotation = 0;
|
|
this.rotation = 0;
|
|
|
|
|
|
this.sizeAttenuation = true;
|
|
this.sizeAttenuation = true;
|
|
@@ -40,8 +44,11 @@ SpriteMaterial.prototype.copy = function ( source ) {
|
|
Material.prototype.copy.call( this, source );
|
|
Material.prototype.copy.call( this, source );
|
|
|
|
|
|
this.color.copy( source.color );
|
|
this.color.copy( source.color );
|
|
|
|
+
|
|
this.map = source.map;
|
|
this.map = source.map;
|
|
|
|
|
|
|
|
+ this.alphaMap = source.alphaMap;
|
|
|
|
+
|
|
this.rotation = source.rotation;
|
|
this.rotation = source.rotation;
|
|
|
|
|
|
this.sizeAttenuation = source.sizeAttenuation;
|
|
this.sizeAttenuation = source.sizeAttenuation;
|