| # | Line 320 | Line 320 | register int sn; /* target source number */ | |
|---|---|---|
| 320 | srcray(&sr, NULL, sn); | |
| 321 | rayvalue(&sr); | |
| 322 | if (bright(sr.rcol) <= FTINY) { | |
| 323 | + | if (nhit > 0) { |
| 324 | #ifdef DEBUG | |
| 325 | < | fprintf(stderr, "\tfound an occlusion\n"); |
| 325 | > | fprintf(stderr, "\tpartially occluded\n"); |
| 326 | #endif | |
| 327 | < | return(f); /* need to shadow test */ |
| 328 | < | } |
| 329 | < | nhit++; |
| 327 | > | return(f); /* need to shadow test */ |
| 328 | > | } |
| 329 | > | } else |
| 330 | > | nhit++; |
| 331 | } | |
| 332 | if (nhit == 0) { | |
| 333 | #ifdef DEBUG | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |