# | Line 382 | Line 382 | direct( /* add direct component */ | |
---|---|---|
382 | scp->sno = sr.rsrc; | |
383 | /* compute coefficient */ | |
384 | (*f)(scp->coef, p, sr.rdir, si.dom); | |
385 | < | cntord[sn].brt = bright(scp->coef); |
385 | > | cntord[sn].brt = intens(scp->coef); |
386 | if (cntord[sn].brt <= 0.0) | |
387 | continue; | |
388 | #if SHADCACHE | |
# | Line 399 | Line 399 | direct( /* add direct component */ | |
399 | rayvalue(&sr); | |
400 | multcolor(sr.rcol, sr.rcoef); | |
401 | copycolor(scp->val, sr.rcol); | |
402 | < | cntord[sn].brt = bright(scp->val); |
402 | > | cntord[sn].brt = intens(sr.rcol); |
403 | } | |
404 | /* sort contributions */ | |
405 | qsort(cntord, sn, sizeof(CNTPTR), cntcmp); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |