|
@@ -160,8 +160,8 @@ THREE.SpritePlugin = function ( renderer, sprites ) {
|
|
|
|
|
|
var sprite = sprites[ i ];
|
|
|
|
|
|
- sprite._modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, sprite.matrixWorld );
|
|
|
- sprite.z = - sprite._modelViewMatrix.elements[ 14 ];
|
|
|
+ sprite.modelViewMatrix.multiplyMatrices( camera.matrixWorldInverse, sprite.matrixWorld );
|
|
|
+ sprite.z = - sprite.modelViewMatrix.elements[ 14 ];
|
|
|
|
|
|
}
|
|
|
|
|
@@ -177,7 +177,7 @@ THREE.SpritePlugin = function ( renderer, sprites ) {
|
|
|
var material = sprite.material;
|
|
|
|
|
|
gl.uniform1f( uniforms.alphaTest, material.alphaTest );
|
|
|
- gl.uniformMatrix4fv( uniforms.modelViewMatrix, false, sprite._modelViewMatrix.elements );
|
|
|
+ gl.uniformMatrix4fv( uniforms.modelViewMatrix, false, sprite.modelViewMatrix.elements );
|
|
|
|
|
|
sprite.matrixWorld.decompose( spritePosition, spriteRotation, spriteScale );
|
|
|
|