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.20 by greg, Mon Jan 4 19:40:14 2010 UTC vs.
Revision 2.22 by greg, Tue Apr 13 01:48:52 2010 UTC

# Line 243 | Line 243 | RGBPRIMS  pr
243   {
244          int     i, j;
245          
246 <        for (i = 0; i < 4; i++) {
247 <                if ((pr[i][CIEX] <= -.5) | (pr[i][CIEY] <= -.5))
246 >        for (i = 0; i < 3; i++) {
247 >                if ((pr[i][CIEX] <= -1.) | (pr[i][CIEY] <= -1.))
248                          return(0);
249 <                if ((pr[i][CIEX] >= 1.5) | (pr[i][CIEY] >= 1.5))
249 >                if ((pr[i][CIEX] >= 2.) | (pr[i][CIEY] >= 2.))
250                          return(0);
251 <                if (pr[i][CIEX] + pr[i][CIEY] >= 1.5)
251 >                if (pr[i][CIEX] + pr[i][CIEY] <= -1.)
252                          return(0);
253 +                if (pr[i][CIEX] + pr[i][CIEY] >= 2.)
254 +                        return(0);
255          }
256 +        if ((pr[3][CIEX] <= 0.) | (pr[3][CIEX] >= 1.) |
257 +                        (pr[3][CIEY] <= 0.) | (pr[3][CIEY] >= 1.))
258 +                return(0);
259          for (i = 0; i < 4; i++)
260                  for (j = i+1; j < 4; j++)
261                          if (CEQ(pr[i][CIEX],pr[j][CIEX]) &&

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines