Sfoglia il codice sorgente

Use matrixWorld instead of matrix for DecalGeometry

Pelle Johnsen 8 anni fa
parent
commit
958220bfee
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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
 			// transform the vertex to world space, then to projector space
 
 
-			vertex.applyMatrix4( mesh.matrix );
+			vertex.applyMatrix4( mesh.matrixWorld );
 			vertex.applyMatrix4( projectorMatrixInverse );
 			vertex.applyMatrix4( projectorMatrixInverse );
 
 
 			decalVertices.push( new DecalVertex( vertex.clone(), normal.clone() ) );
 			decalVertices.push( new DecalVertex( vertex.clone(), normal.clone() ) );

粤ICP备19079148号