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.48 by greg, Fri May 11 14:26:24 2018 UTC vs.
Revision 2.49 by greg, Sat May 12 02:32:10 2018 UTC

# Line 491 | Line 491 | sample_sdcomp(BSDFDAT *ndp, SDComponent *dcp, int xmit
491                          multcolor(sr.rcoef, ndp->pr->pcol);
492                  if (rayorigin(&sr, SPECULAR, ndp->pr, sr.rcoef) < 0) {
493                          if (!n & (nstarget > 1)) {
494 +                                n = nstarget;   /* avoid infinitue loop */
495                                  nstarget = nstarget*sr.rweight/minweight;
496 +                                if (n == nstarget) break;
497                                  n = -1;         /* moved target */
498                          }
499                          continue;               /* try again */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines