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.22 by greg, Sun Sep 2 15:33:15 2012 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;
# Line 506 | Line 508 | m_bsdf(OBJREC *m, RAY *r)
508          if (mf->fxp != &unitxf) {
509                  multv3(upvec, upvec, mf->fxp->xfm);
510                  nd.thick *= mf->fxp->sca;
511 +        }
512 +        if (r->rox != NULL) {
513 +                multv3(upvec, upvec, r->rox->f.xfm);
514 +                nd.thick *= r->rox->f.sca;
515          }
516          raynormal(nd.pnorm, r);
517                                                  /* compute local BSDF xform */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines