494 |
|
break; |
495 |
|
scp = srccnt + cntord[sn].sndx; |
496 |
|
/* test for hit */ |
497 |
< |
rayorigin(&sr, SHADOW, r, NULL); |
497 |
> |
rayorigin(&sr, thrudir(r,scp->dir) ? TSHADOW : RSHADOW, r, NULL); |
498 |
|
copyscolor(sr.rcoef, scp->coef); |
499 |
|
VCOPY(sr.rdir, scp->dir); |
500 |
|
sr.rsrc = scp->sno; |
596 |
|
setcolor(cvext, re > 92. ? 0. : exp(-re), |
597 |
|
ge > 92. ? 0. : exp(-ge), |
598 |
|
be > 92. ? 0. : exp(-be)); |
599 |
< |
if (intens(cvext) <= FTINY) |
599 |
> |
if (intens(cvext) <= FTINY*FTINY) |
600 |
|
break; /* too far away */ |
601 |
|
sr.rorg[0] = r->rorg[0] + r->rdir[0]*t; |
602 |
|
sr.rorg[1] = r->rorg[1] + r->rdir[1]*t; |
603 |
|
sr.rorg[2] = r->rorg[2] + r->rdir[2]*t; |
604 |
|
|
605 |
|
if (!volumePhotonMapping) { |
606 |
+ |
if (srcskip(r->slights[i], r)) |
607 |
+ |
continue; |
608 |
|
initsrcindex(&si); /* sample ray to this source */ |
609 |
|
si.sn = r->slights[i]; |
610 |
|
nopart(&si, &sr); |