| 434 |
|
cntord[sn].sndx = sn; |
| 435 |
|
scp = srccnt + sn; |
| 436 |
|
scp->sno = sr.rsrc; |
| 437 |
< |
/* compute coefficient */ |
| 438 |
< |
(*f)(scp->coef, p, sr.rdir, si.dom); |
| 439 |
< |
cntord[sn].brt = intens(scp->coef); |
| 440 |
< |
if (cntord[sn].brt <= 0.0) |
| 441 |
< |
continue; |
| 442 |
< |
#if SHADCACHE |
| 443 |
< |
/* check shadow cache */ |
| 437 |
> |
#if SHADCACHE /* check shadow cache */ |
| 438 |
|
if (si.np == 1 && srcblocked(&sr)) { |
| 439 |
|
cntord[sn].brt = 0.0; |
| 440 |
|
continue; |
| 441 |
|
} |
| 442 |
|
#endif |
| 443 |
+ |
/* compute coefficient */ |
| 444 |
+ |
(*f)(scp->coef, p, sr.rdir, si.dom); |
| 445 |
+ |
cntord[sn].brt = intens(scp->coef); |
| 446 |
+ |
if (cntord[sn].brt <= 0.0) |
| 447 |
+ |
continue; |
| 448 |
|
VCOPY(scp->dir, sr.rdir); |
| 449 |
|
copycolor(sr.rcoef, scp->coef); |
| 450 |
|
/* compute potential */ |