diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-02-25 22:03:11 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-02-25 22:03:11 -0500 |
commit | 40b180db2833e4e6ef835a463ca15ff865ce0d18 (patch) | |
tree | ebb3f808374d653cd150852e252e68b9addca8d0 /libdimension/sphere.c | |
parent | b27ad82573bc70d84bc4213ba00771f4746b36bc (diff) | |
download | dimension-40b180db2833e4e6ef835a463ca15ff865ce0d18.tar.xz |
Point the normal vectors away from the object.
Diffstat (limited to 'libdimension/sphere.c')
-rw-r--r-- | libdimension/sphere.c | 4 |
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); } } |