Browse Source

Mesh: Use correct vertex to compute normal during raycasting

Elisée Maurer 4 years ago
parent
commit
e087542d61
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/objects/Mesh.js

+ 1 - 1
src/objects/Mesh.js

@@ -402,7 +402,7 @@ function checkBufferGeometryIntersection( object, material, raycaster, ray, posi
 
 		const face = {
 			a: a,
-			b: a,
+			b: b,
 			c: c,
 			normal: new Vector3(),
 			materialIndex: 0