From 1a9ece2041fe6feb3a39ccff86b93b21d801f498 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 4 Jun 2014 15:06:30 -0400 Subject: triangles: Don't forget to transform normals. This fixes the artifacts seen when rendering meshes. --- libdimension/bench/triangle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdimension/bench') diff --git a/libdimension/bench/triangle.c b/libdimension/bench/triangle.c index 297417c..b149c27 100644 --- a/libdimension/bench/triangle.c +++ b/libdimension/bench/triangle.c @@ -54,7 +54,7 @@ main(void) dmnsn_assert(intersected, "Didn't intersect"); printf("dmnsn_triangle_intersection(true): %ld\n", sandglass.grains); - /* Intersecting case */ + /* Non-intersecting case */ line = dmnsn_new_line(dmnsn_new_vector(3.0, 3.0, -1.0), dmnsn_z); sandglass_bench_fine(&sandglass, { intersected = dmnsn_object_intersection(triangle, line, &intersection); -- cgit v1.2.3