ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/sphere.c
(Generate patch)

Comparing ray/src/rt/sphere.c (file contents):
Revision 2.8 by greg, Tue Jul 8 18:25:00 2014 UTC vs.
Revision 2.9 by greg, Sun Jan 31 18:08:04 2021 UTC

# Line 63 | Line 63 | o_sphere(                      /* compute intersection with sphere */
63                          break;
64          if (i >= nroots)
65                  return(0);                      /* no positive root */
66 <
67 <        if (t >= r->rot)
68 <                return(0);                      /* other is closer */
66 >        if (rayreject(so, r, t))
67 >                return(0);                      /* previous hit better */
68  
69          r->ro = so;
70          r->rot = t;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines