Преглед изворни кода

Use matrixWorld instead of matrix for DecalGeometry

Pelle Johnsen пре 8 година
родитељ
комит
958220bfee
1 измењених фајлова са 1 додато и 1 уклоњено
  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() ) );

粤ICP备19079148号