Browse Source

Update ShadowMesh.js

erichlof 10 years ago
parent
commit
766a64b2e2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/objects/ShadowMesh.js

+ 3 - 3
src/objects/ShadowMesh.js

@@ -22,6 +22,8 @@ THREE.ShadowMesh = function ( mesh ) {
 	this.parentMeshMatrix = mesh.matrixWorld;
 	
 	this.frustumCulled = false;
+	
+	this.matrixAutoUpdate = false;
 
 };
 
@@ -61,10 +63,8 @@ THREE.ShadowMesh.prototype.update = function () {
 		sme[ 7 ]  = - lightPosition4D.w * plane.normal.y;
 		sme[ 11 ] = - lightPosition4D.w * plane.normal.z;
 		sme[ 15 ] = dot - lightPosition4D.w * -plane.constant;
-	
-		this.matrix.multiplyMatrices( shadowMatrix, this.parentMeshMatrix );
 		
-		this.matrixAutoUpdate = false;
+		this.matrix.multiplyMatrices( shadowMatrix, this.parentMeshMatrix );
 
 	};