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.66 by greg, Wed Oct 13 20:03:31 2021 UTC vs.
Revision 2.67 by greg, Tue Dec 7 23:49:50 2021 UTC

# Line 156 | Line 156 | compute_through(BSDFDAT *ndp)
156                  psamp[i].tdir[1] = -ndp->vray[1] + dir2check[i][1]*srchrad;
157                  psamp[i].tdir[2] = -ndp->vray[2];
158                  normalize(psamp[i].tdir);
159 <                ec = SDevalBSDF(&sv, psamp[i].tdir, ndp->vray, ndp->sd);
159 >                ec = SDevalBSDF(&sv, ndp->vray, psamp[i].tdir, ndp->sd);
160                  if (ec)
161                          goto baderror;
162                  cvt_sdcolor(psamp[i].vcol, &sv);
# Line 173 | Line 173 | compute_through(BSDFDAT *ndp)
173                  if (i && psamp[i].vy == psamp[i-1].vy)
174                          continue;               /* assume duplicate sample */
175  
176 <                ec = SDsizeBSDF(&tomega, psamp[i].tdir, ndp->vray,
176 >                ec = SDsizeBSDF(&tomega, ndp->vray, psamp[i].tdir,
177                                                  SDqueryMin, ndp->sd);
178                  if (ec)
179                          goto baderror;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines