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 2.62 by greg, Wed May 7 02:08:12 2014 UTC vs.
Revision 2.63 by greg, Mon Sep 15 00:54:39 2014 UTC

# Line 440 | Line 440 | direct(                                        /* add direct component */
440                                                  /* compute number to check */
441          nshadcheck = pow((double)ncnts, shadcert) + .5;
442                                                  /* modify threshold */
443 <        ourthresh = shadthresh / r->rweight;
443 >        if (ncnts > MINSHADCNT)
444 >                ourthresh = shadthresh / r->rweight;
445 >        else
446 >                ourthresh = 0;
447                                                  /* test for shadows */
448          for (nhits = 0, hwt = 0.0, sn = 0; sn < ncnts;
449                          hwt += (double)source[scp->sno].nhits /

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines