Skip to content

Commit 958220b

Browse files
author
Pelle Johnsen
committed
Use matrixWorld instead of matrix for DecalGeometry
1 parent c36f35d commit 958220b

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)