diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-07-26 09:20:06 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-07-26 09:21:23 -0600 |
commit | 5f8ce1e256462a9addbe318966a70a4bc6399bad (patch) | |
tree | 148cc13bb63691d056d82424435df5347d809331 /libdimension/sphere.c | |
parent | e683539695c720e559139ffd58e1786fbb1ea06c (diff) | |
download | dimension-5f8ce1e256462a9addbe318966a70a4bc6399bad.tar.xz |
Support multiple texture assignment properly.
Diffstat (limited to 'libdimension/sphere.c')
-rw-r--r-- | libdimension/sphere.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libdimension/sphere.c b/libdimension/sphere.c index 5d937bd..c0f0fe4 100644 --- a/libdimension/sphere.c +++ b/libdimension/sphere.c @@ -44,11 +44,8 @@ dmnsn_sphere_intersection_fn(const dmnsn_object *sphere, dmnsn_line l, if (n == 2) t = dmnsn_min(t, x[1]); - intersection->ray = l; - intersection->t = t; - intersection->normal = dmnsn_line_point(l, t); - intersection->texture = sphere->texture; - intersection->interior = sphere->interior; + intersection->t = t; + intersection->normal = dmnsn_line_point(l, t); return true; } } |