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

Comparing ray/src/rt/srcsamp.c (file contents):
Revision 2.10 by schorsch, Mon Jul 21 22:30:19 2003 UTC vs.
Revision 2.11 by greg, Sat Sep 13 17:31:35 2003 UTC

# Line 241 | Line 241 | register RAY  *r;
241          v[1] = r->rorg[1] - vp[1];
242          v[2] = r->rorg[2] - vp[2];
243          vp = source[si->sn].snorm;
244 <        if (DOT(v,vp) <= FTINY) {       /* behind source */
244 >        if (DOT(v,vp) <= 0.) {          /* behind source */
245                  si->np = 0;
246                  return;
247          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines