Explorar o código

Update ShadowMesh.js

erichlof %!s(int64=10) %!d(string=hai) anos
pai
achega
3ee2e831af
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;