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

Comparing ray/src/common/spec_rgb.c (file contents):
Revision 2.16 by greg, Mon Oct 8 18:07:55 2007 UTC vs.
Revision 2.17 by greg, Mon Nov 2 23:45:11 2009 UTC

# Line 244 | Line 244 | RGBPRIMS  pr
244          int     i;
245          
246          for (i = 0; i < 4; i++) {
247 <                if ((pr[i][CIEX] <= CEPS) | (pr[i][CIEY] <= CEPS))
247 >                if ((pr[i][CIEX] <= -CEPS) | (pr[i][CIEY] <= -CEPS))
248                          return(0);
249 <                if ((pr[i][CIEX] >= 1.-CEPS) | (pr[i][CIEY] >= 1.-CEPS))
249 >                if ((pr[i][CIEX] >= 1.+CEPS) | (pr[i][CIEY] >= 1.+CEPS))
250 >                        return(0);
251 >                if (pr[i][CIEX] + pr[i][CIEY] >= 1.+CEPS)
252                          return(0);
253          }
254          return(1);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines