浏览代码

Update ShadowMesh.js

erichlof 10 年之前
父节点
当前提交
c512ee3f3d
共有 1 个文件被更改,包括 2 次插入2 次删除
  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 );
 
 	};