summaryrefslogtreecommitdiffstats
path: root/libdimension/plane.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/plane.c')
-rw-r--r--libdimension/plane.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libdimension/plane.c b/libdimension/plane.c
index 8931cc7..e79e003 100644
--- a/libdimension/plane.c
+++ b/libdimension/plane.c
@@ -63,11 +63,8 @@ dmnsn_plane_intersection_fn(const dmnsn_object *plane, dmnsn_line line,
if (den != 0.0) {
double t = -dmnsn_vector_dot(line.x0, *normal)/den;
if (t >= 0.0) {
- intersection->ray = line;
- intersection->t = t;
- intersection->normal = *normal;
- intersection->texture = plane->texture;
- intersection->interior = plane->interior;
+ intersection->t = t;
+ intersection->normal = *normal;
return true;
}
}