Explorar o código

Update ShadowMesh.js

erichlof %!s(int64=10) %!d(string=hai) anos
pai
achega
c512ee3f3d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/objects/ShadowMesh.js

+ 2 - 2
src/objects/ShadowMesh.js

@@ -19,7 +19,7 @@ THREE.ShadowMesh = function ( mesh ) {
 	
 	THREE.Mesh.call( this, mesh.geometry, shadowMaterial );
 	
-	this.parentMeshMatrix = mesh.matrixWorld;
+	this.meshMatrix = mesh.matrixWorld;
 	
 	this.frustumCulled = false;
 	
@@ -64,7 +64,7 @@ THREE.ShadowMesh.prototype.update = function () {
 		sme[ 11 ] = - lightPosition4D.w * plane.normal.z;
 		sme[ 15 ] = dot - lightPosition4D.w * -plane.constant;
 		
-		this.matrix.multiplyMatrices( shadowMatrix, this.parentMeshMatrix );
+		this.matrix.multiplyMatrices( shadowMatrix, this.meshMatrix );
 
 	};