Explorar o código

Use matrixWorld instead of matrix for DecalGeometry

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