200 |
|
while (nsources--) |
201 |
|
freeobscache(&source[nsources]); |
202 |
|
#endif |
203 |
+ |
#ifdef SSKIPOPT |
204 |
+ |
sskip_rsi(NULL); |
205 |
+ |
#endif |
206 |
|
free(source); |
207 |
|
source = NULL; |
208 |
|
nsources = 0; |
451 |
|
cntord[sn].brt = sintens(scp->coef); |
452 |
|
if (cntord[sn].brt <= 0.0) |
453 |
|
continue; |
454 |
+ |
#ifdef SSKIPOPT |
455 |
+ |
if (ssf_select != NULL && sskip_chk(ssf_select, scp->sno)) |
456 |
+ |
scalescolor(scp->coef, r->scorr); |
457 |
+ |
#endif |
458 |
|
VCOPY(scp->dir, sr.rdir); |
459 |
|
copyscolor(sr.rcoef, scp->coef); |
460 |
|
/* compute potential */ |
642 |
|
} |
643 |
|
/* other factors */ |
644 |
|
d *= si.dom * r->rot / (4.*PI*nsamps); |
645 |
+ |
#ifdef SSKIPOPT |
646 |
+ |
if (ssf_select != NULL && sskip_chk(ssf_select, sr.rsrc)) |
647 |
+ |
d *= r->scorr; |
648 |
+ |
#endif |
649 |
|
scalescolor(sr.rcol, d); |
650 |
|
} else { |
651 |
|
/* PMAP: Add ambient inscattering from |