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

Comparing ray/src/rt/srcdraw.c (file contents):
Revision 2.12 by greg, Thu Sep 2 04:16:58 2004 UTC vs.
Revision 2.13 by greg, Thu Sep 2 16:02:56 2004 UTC

# Line 455 | Line 455 | drawsources(
455                                          continue;       /* missed/blocked */
456                                                          /* modify pixel */
457                                  if (zbf[y-y0] != NULL &&
458 <                                                sr.rt < 0.99*zbf[y-y0][x-x0])
458 >                                                sr.rt < 0.99*zbf[y-y0][x-x0]) {
459                                          zbf[y-y0][x-x0] = sr.rt;
460 <                                else if (!bigdiff(sr.rcol, pic[y-y0][x-x0],
461 <                                                0.01))  /* source sample */
460 >                                } else if (!bigdiff(sr.rcol, pic[y-y0][x-x0],
461 >                                                0.01)) { /* source sample */
462                                          scalecolor(pic[y-y0][x-x0], w);
463 <                                else {
464 <                                        scalecolor(sr.rcol, w);
465 <                                        scalecolor(pic[y-y0][x-x0], 1.-w);
466 <                                        addcolor(pic[y-y0][x-x0], sr.rcol);
463 >                                        continue;
464                                  }
465 +                                scalecolor(sr.rcol, w);
466 +                                scalecolor(pic[y-y0][x-x0], 1.-w);
467 +                                addcolor(pic[y-y0][x-x0], sr.rcol);
468                          }
469          }
470   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines