Explorar o código

Update webgl_decals.html

Fix for #12191
Michael Herzog %!s(int64=7) %!d(string=hai) anos
pai
achega
d53a627247
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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 );