|
@@ -65,8 +65,17 @@ THREE.SpritePlugin = function () {
|
|
|
|
|
|
alphaTest: _gl.getUniformLocation( program, 'alphaTest' )
|
|
|
};
|
|
|
-
|
|
|
- _texture = new THREE.Texture();
|
|
|
+
|
|
|
+ var canvas = document.createElement( 'canvas' );
|
|
|
+ canvas.width = 8;
|
|
|
+ canvas.height = 8;
|
|
|
+
|
|
|
+ var context = canvas.getContext( '2d' );
|
|
|
+ context.fillStyle = 'white';
|
|
|
+ context.fillRect( 0, 0, 8, 8 );
|
|
|
+
|
|
|
+ _texture = new THREE.Texture( canvas );
|
|
|
+ _texture.needsUpdate = true;
|
|
|
|
|
|
};
|
|
|
|