Explorar el Código

Mesh: Use correct vertex to compute normal during raycasting

Elisée Maurer hace 4 años
padre
commit
e087542d61
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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