What does the backfaceCulling parameter of Ray.intersectTriangle()?

Trying to figure out why the order of the triangle vertices matters when ray.intersectTriangle when using back face culling?

here is a fiddle fiddle

Basically triangle in order ray.intersectTriangle(A,B,C,false,target) will hit, but ray.intersectTriangle(A,B,C,true,target) misses.

It seems to me that backface culling would make ti so handedness of the triangle doesnt matter??

If you set backfaceCulling to false, it does not matter if the ray hits the front or back side of the triangle. Both cases are intersections.

1 Like