Browse Source

Mesh: Use correct vertex to compute normal during raycasting

Elisée Maurer 4 năm trước cách đây
mục cha
commit
e087542d61
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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