Prechádzať zdrojové kódy

Merge pull request #13835 from pjoe/decals-matrix-world

Use matrixWorld instead of matrix for DecalGeometry
Mr.doob 7 rokov pred
rodič
commit
d3f765a627
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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() ) );