summaryrefslogtreecommitdiffstats
path: root/libdimension/torus.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-07-26 09:20:06 -0600
committerTavian Barnes <tavianator@gmail.com>2011-07-26 09:21:23 -0600
commit5f8ce1e256462a9addbe318966a70a4bc6399bad (patch)
tree148cc13bb63691d056d82424435df5347d809331 /libdimension/torus.c
parente683539695c720e559139ffd58e1786fbb1ea06c (diff)
downloaddimension-5f8ce1e256462a9addbe318966a70a4bc6399bad.tar.xz
Support multiple texture assignment properly.
Diffstat (limited to 'libdimension/torus.c')
-rw-r--r--libdimension/torus.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libdimension/torus.c b/libdimension/torus.c
index 9eb2323..be96743 100644
--- a/libdimension/torus.c
+++ b/libdimension/torus.c
@@ -123,11 +123,9 @@ dmnsn_torus_intersection_fn(const dmnsn_object *torus, dmnsn_line l,
dmnsn_vector_normalized(dmnsn_new_vector(p.x, 0.0, p.z))
);
dmnsn_vector normal = dmnsn_vector_normalized(dmnsn_vector_sub(p, center));
- intersection->ray = l;
- intersection->t = t;
- intersection->normal = normal;
- intersection->texture = torus->texture;
- intersection->interior = torus->interior;
+
+ intersection->t = t;
+ intersection->normal = normal;
return true;
}