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.9 by greg, Tue Apr 19 21:31:22 2011 UTC vs.
Revision 2.10 by greg, Sun Apr 24 19:39:21 2011 UTC

# Line 291 | Line 291 | sample_sdcomp(BSDFDAT *ndp, SDComponent *dcp, int usep
291          SDError ec;
292          SDValue bsv;
293          double  sthick;
294 <        FVECT   vjit, vsmp;
294 >        FVECT   vsmp;
295          RAY     sr;
296          int     ntrials;
297                                                  /* multiple samples? */
# Line 304 | Line 304 | sample_sdcomp(BSDFDAT *ndp, SDComponent *dcp, int usep
304          for (ntrials = 0; nsent < nstarget && ntrials < 9*nstarget; ntrials++) {
305                  SDerrorDetail[0] = '\0';
306                                                  /* sample direction & coef. */
307 <                bsdf_jitter(vjit, ndp, 0);
308 <                ec = SDsampComponent(&bsv, vsmp, vjit, ntrials ? frandom()
307 >                bsdf_jitter(vsmp, ndp, 0);
308 >                ec = SDsampComponent(&bsv, vsmp, ntrials ? frandom()
309                                  : urand(ilhash(dimlist,ndims)+samplendx), dcp);
310                  if (ec)
311                          objerror(ndp->mp, USER, transSDError(ec));

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines