# | 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? */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |