summaryrefslogtreecommitdiffstats
path: root/libdimension/cube.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-02-25 15:28:23 -0500
committerTavian Barnes <tavianator@gmail.com>2010-02-25 15:28:23 -0500
commitb27ad82573bc70d84bc4213ba00771f4746b36bc (patch)
tree6d4b6390da29cb29759b4d469c6869d6180e0680 /libdimension/cube.c
parent9e117cb576f55e3215cb46dcd8d2ad3b52124eb4 (diff)
downloaddimension-b27ad82573bc70d84bc4213ba00771f4746b36bc.tar.xz
Add the dmnsn_interior* to dmnsn_intersection*.
Diffstat (limited to 'libdimension/cube.c')
-rw-r--r--libdimension/cube.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libdimension/cube.c b/libdimension/cube.c
index da7f206..9815eb6 100644
--- a/libdimension/cube.c
+++ b/libdimension/cube.c
@@ -124,10 +124,11 @@ dmnsn_cube_intersection_fn(const dmnsn_object *cube, dmnsn_line line)
if (t >= 0.0) {
intersection = dmnsn_new_intersection();
- intersection->ray = line;
- intersection->t = t;
- intersection->normal = normal;
- intersection->texture = cube->texture;
+ intersection->ray = line;
+ intersection->t = t;
+ intersection->normal = normal;
+ intersection->texture = cube->texture;
+ intersection->interior = cube->interior;
}
return intersection;