Skip to content

Commit d3f765a

Browse files
authored
Merge pull request #13835 from pjoe/decals-matrix-world
Use matrixWorld instead of matrix for DecalGeometry
2 parents 3800256 + 958220b commit d3f765a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/js/geometries/DecalGeometry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148

149149
// transform the vertex to world space, then to projector space
150150

151-
vertex.applyMatrix4( mesh.matrix );
151+
vertex.applyMatrix4( mesh.matrixWorld );
152152
vertex.applyMatrix4( projectorMatrixInverse );
153153

154154
decalVertices.push( new DecalVertex( vertex.clone(), normal.clone() ) );

0 commit comments

Comments
 (0)