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.18 by greg, Wed Jan 24 04:39:52 2018 UTC vs.
Revision 2.20 by greg, Tue Nov 13 19:58:33 2018 UTC

# Line 12 | Line 12 | static const char      RCSid[] = "$Id$";
12   #include  "ray.h"
13   #include  "view.h"
14   #include  "otypes.h"
15 + #include  "otspecial.h"
16   #include  "source.h"
17  
18  
# Line 456 | Line 457 | drawsources(
457                                                          /* modify pixel */
458                                  w = poly_area(ppoly, npv) * hres * vres;
459                                  if (zbf[y-y0] != NULL &&
460 <                                                sr.rt < 0.99*zbf[y-y0][x-x0]) {
461 <                                        zbf[y-y0][x-x0] = sr.rt;
460 >                                                sr.rxt < 0.99*zbf[y-y0][x-x0]) {
461 >                                        zbf[y-y0][x-x0] = sr.rxt;
462                                  } else if (!bigdiff(sr.rcol, pic[y-y0][x-x0],
463                                                  0.01)) { /* source sample */
464                                          scalecolor(pic[y-y0][x-x0], w);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines