From 40b180db2833e4e6ef835a463ca15ff865ce0d18 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 25 Feb 2010 22:03:11 -0500 Subject: Point the normal vectors away from the object. --- libdimension/sphere.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libdimension/sphere.c') 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); } } -- cgit v1.2.3