summaryrefslogtreecommitdiffstats
path: root/libdimension/bench/triangle.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-06-04 15:06:30 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-06-04 15:06:51 -0400
commit1a9ece2041fe6feb3a39ccff86b93b21d801f498 (patch)
tree9fcc8325c10f5768a4d2b297c49805e1af538fb7 /libdimension/bench/triangle.c
parent13779f79f41e8bce483e98faa6353c07c12563c8 (diff)
downloaddimension-1a9ece2041fe6feb3a39ccff86b93b21d801f498.tar.xz
triangles: Don't forget to transform normals.
This fixes the artifacts seen when rendering meshes.
Diffstat (limited to 'libdimension/bench/triangle.c')
-rw-r--r--libdimension/bench/triangle.c2
1 files changed, 1 insertions, 1 deletions
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);