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

Comparing ray/src/rt/ambient.c (file contents):
Revision 1.1 by greg, Thu Feb 2 10:41:17 1989 UTC vs.
Revision 1.2 by greg, Tue Feb 21 14:34:08 1989 UTC

# Line 221 | Line 221 | double  s;
221          for (i = 0; i < 8; i++) {
222                  for (j = 0; j < 3; j++) {
223                          ck0[j] = c0[j];
224 <                        if (1<<j & i) {
224 >                        if (1<<j & i)
225                                  ck0[j] += s;
226 <                                if (r->rop[j] < ck0[j] - OCTSCALE*s)
227 <                                        break;
228 <                        } else
229 <                                if (r->rop[j] > ck0[j] + (1.0+OCTSCALE)*s)
230 <                                        break;
226 >                        if (r->rop[j] < ck0[j] - OCTSCALE*s)
227 >                                break;
228 >                        if (r->rop[j] > ck0[j] + (1.0+OCTSCALE)*s)
229 >                                break;
230                  }
231                  if (j == 3)
232                          wsum += sumambient(acol, r, at->kid+i, ck0, s);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines