131 |
|
sr->rsrc = si->sn; /* remember source */ |
132 |
|
srcp = source + si->sn; |
133 |
|
if (srcp->sflags & SDISTANT) { |
134 |
< |
if (srcp->sflags & SSPOT && spotout(sr, srcp->sl.s, 1)) |
134 |
> |
if (srcp->sflags & SSPOT && spotout(sr, srcp->sl.s)) |
135 |
|
continue; |
136 |
|
return(1); /* sample OK */ |
137 |
|
} |
141 |
|
continue; |
142 |
|
/* check angle */ |
143 |
|
if (srcp->sflags & SSPOT) { |
144 |
< |
if (spotout(sr, srcp->sl.s, 0)) |
144 |
> |
if (spotout(sr, srcp->sl.s)) |
145 |
|
continue; |
146 |
|
/* adjust solid angle */ |
147 |
|
si->dom *= d*d; |
466 |
|
if (srcignore(m, r)) |
467 |
|
return(1); |
468 |
|
/* check for outside spot */ |
469 |
< |
if (m->otype==MAT_SPOT && spotout(r, makespot(m), r->rot>=FHUGE)) |
469 |
> |
if (m->otype==MAT_SPOT && spotout(r, makespot(m))) |
470 |
|
return(1); |
471 |
|
/* get distribution pattern */ |
472 |
|
raytexture(r, m->omod); |