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

Comparing ray/src/common/bsdf.c (file contents):
Revision 2.34 by greg, Thu Jul 7 15:25:09 2011 UTC vs.
Revision 2.35 by greg, Sun Aug 21 22:38:12 2011 UTC

# Line 423 | Line 423 | SDsampComponent(SDValue *sv, FVECT ioVec, double randX
423          cd = (*sdc->func->getCDist)(inVec, sdc);
424          if (cd == NULL)
425                  return SDEmemory;
426 <        if (cd->cTotal <= 1e-7) {       /* anything to sample? */
426 >        if (cd->cTotal <= 1e-6) {       /* anything to sample? */
427                  sv->spec = c_dfcolor;
428                  sv->cieY = .0;
429                  memset(ioVec, 0, 3*sizeof(double));
# Line 685 | Line 685 | SDsampBSDF(SDValue *sv, FVECT ioVec, double randX, int
685                  }
686                  sv->cieY += cdarr[i]->cTotal;
687          }
688 <        if (sv->cieY <= 1e-7) {         /* anything to sample? */
688 >        if (sv->cieY <= 1e-6) {         /* anything to sample? */
689                  sv->cieY = .0;
690                  memset(ioVec, 0, 3*sizeof(double));
691                  return SDEnone;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines