Răsfoiți Sursa

Use matrixWorld instead of matrix for DecalGeometry

Pelle Johnsen 7 ani în urmă
părinte
comite
958220bfee
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      examples/js/geometries/DecalGeometry.js

+ 1 - 1
examples/js/geometries/DecalGeometry.js

@@ -148,7 +148,7 @@
 
 			// transform the vertex to world space, then to projector space
 
-			vertex.applyMatrix4( mesh.matrix );
+			vertex.applyMatrix4( mesh.matrixWorld );
 			vertex.applyMatrix4( projectorMatrixInverse );
 
 			decalVertices.push( new DecalVertex( vertex.clone(), normal.clone() ) );