329 |
|
/* compute coefficient */ |
330 |
|
(*f)(srccnt[sn].val, p, srccnt[sn].dir, srccnt[sn].dom); |
331 |
|
cntord[sn].brt = bright(srccnt[sn].val); |
332 |
< |
if (cntord[sn].brt <= FTINY) |
332 |
> |
if (cntord[sn].brt <= 0.0) |
333 |
|
continue; |
334 |
|
/* compute intersection */ |
335 |
|
if (!( source[sn].sflags & SDISTANT ? |
379 |
|
if (localhit(&sr, &thescene) && |
380 |
|
sr.ro != source[cntord[sn].sno].so) { |
381 |
|
/* check for transmission */ |
382 |
< |
if (sr.clipset != NULL && inset(sr.clipset,sr.ro->omod)) |
383 |
< |
raytrans(&sr); /* object is clipped */ |
384 |
< |
else |
385 |
< |
rayshade(&sr, sr.ro->omod); |
382 |
> |
rayshade(&sr, sr.ro->omod); |
383 |
|
if (bright(sr.rcol) <= FTINY) |
384 |
|
continue; /* missed! */ |
385 |
|
(*f)(srccnt[cntord[sn].sno].val, p, |
428 |
|
register OBJREC *m; |
429 |
|
register RAY *r; |
430 |
|
{ |
434 |
– |
/* check for behind */ |
435 |
– |
if (r->rod < 0.0) |
436 |
– |
return; |
431 |
|
/* check for over-counting */ |
432 |
|
if (wrongsource(m, r) || badambient(m, r)) |
433 |
|
return; |
441 |
|
|
442 |
|
/* otherwise treat as source */ |
443 |
|
} else { |
444 |
+ |
/* check for behind */ |
445 |
+ |
if (r->rod < 0.0) |
446 |
+ |
return; |
447 |
|
/* get distribution pattern */ |
448 |
|
raytexture(r, m->omod); |
449 |
|
/* get source color */ |