소스 검색

Merge pull request #12194 from mrdoob/Mugen87-patch-1

Update webgl_decals.html
Mr.doob 8 년 전
부모
커밋
f5e5a39481
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      examples/webgl_decals.html

+ 1 - 0
examples/webgl_decals.html

@@ -202,6 +202,7 @@
 					intersection.point.copy( p );
 
 					var n = intersects[ 0 ].face.normal.clone();
+					n.transformDirection( mesh.matrixWorld );
 					n.multiplyScalar( 10 );
 					n.add( intersects[ 0 ].point );