summaryrefslogtreecommitdiff
path: root/src/modules/ray/ray_object_sphere.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/ray/ray_object_sphere.h')
-rw-r--r--src/modules/ray/ray_object_sphere.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/ray/ray_object_sphere.h b/src/modules/ray/ray_object_sphere.h
index 1eb37e8..c07f345 100644
--- a/src/modules/ray/ray_object_sphere.h
+++ b/src/modules/ray/ray_object_sphere.h
@@ -43,7 +43,7 @@ static inline int ray_object_sphere_intersects_ray(ray_object_sphere_t *sphere,
float dot_vv = sphere->_prepared.primary_dot_vv;
float b, disc;
- if (depth != 1) {
+ if (depth) {
v = ray_3f_sub(&ray->origin, &sphere->center);
dot_vv = ray_3f_dot(&v, &v);
}
© All Rights Reserved