浏览代码

Update webgl_decals.html

Fix for #12191
Michael Herzog 7 年之前
父节点
当前提交
d53a627247
共有 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 );