summaryrefslogtreecommitdiffstats
path: root/libdimension/cube.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/cube.c
parente683539695c720e559139ffd58e1786fbb1ea06c (diff)
downloaddimension-5f8ce1e256462a9addbe318966a70a4bc6399bad.tar.xz
Support multiple texture assignment properly.
Diffstat (limited to 'libdimension/cube.c')
-rw-r--r--libdimension/cube.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libdimension/cube.c b/libdimension/cube.c
index 98e7345..b127557 100644
--- a/libdimension/cube.c
+++ b/libdimension/cube.c
@@ -112,11 +112,8 @@ dmnsn_cube_intersection_fn(const dmnsn_object *cube, dmnsn_line line,
}
if (tmin >= 0.0) {
- intersection->ray = line;
- intersection->t = tmin;
- intersection->normal = nmin;
- intersection->texture = cube->texture;
- intersection->interior = cube->interior;
+ intersection->t = tmin;
+ intersection->normal = nmin;
return true;
} else {
return false;