Browse Source

Update ShadowMesh.js

erichlof 10 năm trước cách đây
mục cha
commit
3ee2e831af
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/objects/ShadowMesh.js

+ 1 - 1
src/objects/ShadowMesh.js

@@ -19,7 +19,7 @@ THREE.ShadowMesh = function ( mesh ) {
 	
 	THREE.Mesh.call( this, mesh.geometry, shadowMaterial );
 	
-	this.parentMeshMatrix = mesh.matrix;
+	this.parentMeshMatrix = mesh.matrixWorld;
 	
 	this.frustumCulled = false;