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.58 by greg, Wed Jun 3 02:08:32 2020 UTC vs.
Revision 2.59 by greg, Wed Jun 3 02:27:32 2020 UTC

# Line 316 | Line 316 | direct_specular_OK(COLOR cval, FVECT ldir, double omeg
316                  if (tomega2 < .12*tomega)
317                          continue;       /* not safe to include */
318                  cvt_sdcolor(csmp, &sv);
319 <
320 <                if (sf < 2.5*tsr) {     /* weight by Y for small sources */
319 > #if 0
320 >                if (sf < 2.5*tsr) {     /* weight by BSDF for small sources */
321                          scalecolor(csmp, sv.cieY);
322                          wtot += sv.cieY;
323                  } else
324 <                        wtot += 1.;
324 > #endif
325 >                wtot += 1.;
326                  addcolor(cval, csmp);
327          }
328          if (wtot <= FTINY)              /* no valid specular samples? */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines