# | 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 / |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |