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.13 by greg, Thu Sep 2 16:02:56 2004 UTC vs.
Revision 2.14 by greg, Wed Oct 20 18:19:22 2004 UTC

# Line 444 | Line 444 | drawsources(
444                                  if (source[sp->sn].sflags & SSPOT &&
445                                                  spotout(&sr, source[sp->sn].sl.s))
446                                          continue;       /* outside spot */
447 <                                w = poly_area(ppoly, npv) * hres * vres;
448 <                                if (w < .95) {          /* subpixel source */
449 <                                        rayorigin(&sr, NULL, SHADOW, 1.0);
450 <                                        sr.rsrc = sp->sn;
451 <                                } else
452 <                                        rayorigin(&sr, NULL, PRIMARY, 1.0);
447 >                                rayorigin(&sr, NULL, PRIMARY, 1.0);
448                                  rayvalue(&sr);          /* compute value */
449                                  if (bright(sr.rcol) <= FTINY)
450                                          continue;       /* missed/blocked */
451                                                          /* modify pixel */
452 +                                w = poly_area(ppoly, npv) * hres * vres;
453                                  if (zbf[y-y0] != NULL &&
454                                                  sr.rt < 0.99*zbf[y-y0][x-x0]) {
455                                          zbf[y-y0][x-x0] = sr.rt;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines