summaryrefslogtreecommitdiffstats
path: root/libdimension/sphere.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/sphere.c')
-rw-r--r--libdimension/sphere.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libdimension/sphere.c b/libdimension/sphere.c
index d994248..f30c964 100644
--- a/libdimension/sphere.c
+++ b/libdimension/sphere.c
@@ -74,10 +74,6 @@ dmnsn_sphere_intersection_fn(const dmnsn_object *sphere, dmnsn_line line)
intersection->normal = dmnsn_line_point(line, t);
intersection->texture = sphere->texture;
intersection->interior = sphere->interior;
-
- /* Flip the normal if we're inside the sphere */
- if (dmnsn_vector_dot(line.n, intersection->normal) > 0.0)
- intersection->normal = dmnsn_vector_negate(intersection->normal);
}
}