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

Comparing ray/src/rt/source.c (file contents):
Revision 1.15 by greg, Thu Jul 20 13:51:34 1989 UTC vs.
Revision 1.17 by greg, Fri Sep 29 10:04:01 1989 UTC

# Line 394 | Line 394 | char  *p;                      /* data for f */
394          }
395                                          /* weighted hit rate */
396          hwt = hit2 / test2;
397 < #ifdef DEBUG
397 > #ifdef notdef
398          sprintf(errmsg, "%d tested, %d untested, %f hit rate\n",
399                          sn, ncnts-sn, hwt);
400          eputs(errmsg);
# Line 428 | Line 428 | m_light(m, r)                  /* ray hit a light source */
428   register OBJREC  *m;
429   register RAY  *r;
430   {
431                                                /* check for behind */
432        if (r->rod < 0.0)
433                return;
431                                                  /* check for over-counting */
432          if (wrongsource(m, r) || badambient(m, r))
433                  return;
# Line 444 | Line 441 | register RAY  *r;
441  
442                                                  /* otherwise treat as source */
443          } else {
444 +                                                /* check for behind */
445 +                if (r->rod < 0.0)
446 +                        return;
447                                                  /* get distribution pattern */
448                  raytexture(r, m->omod);
449                                                  /* get source color */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines