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.67 by greg, Tue Dec 7 23:49:50 2021 UTC vs.
Revision 2.68 by greg, Thu Feb 10 16:24:51 2022 UTC

# Line 192 | Line 192 | compute_through(BSDFDAT *ndp)
192                  vypeak += psamp[i].vy;
193                  ++ns;
194          }
195 <        if (tomsurr <= FTINY)                   /* no surround implies no peak */
195 >        if (tomsurr < 0.2*tomsum)               /* insufficient surround? */
196                  return;
197          if ((vypeak/ns - (ndp->vray[2] > 0 ? ndp->sd->tLambFront.cieY
198                          : ndp->sd->tLambBack.cieY)*(1./PI))*tomsum < .0005)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines