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

Comparing ray/src/rt/m_bsdf.c (file contents):
Revision 2.23 by greg, Tue Apr 9 16:55:15 2013 UTC vs.
Revision 2.24 by greg, Thu Jul 4 15:14:45 2013 UTC

# Line 122 | Line 122 | direct_bsdf_OK(COLOR cval, FVECT ldir, double omega, B
122                          return(0);
123          }
124          sf = specjitter * ndp->pr->rweight;
125 <        if (25.*tomega <= omega)
125 >        if (tomega <= .0)
126 >                nsamp = 1;
127 >        else if (25.*tomega <= omega)
128                  nsamp = 100.*sf + .5;
129          else
130                  nsamp = 4.*sf*omega/tomega + .5;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines