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.16 by greg, Sat Jul 22 11:07:51 1989 UTC

# 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