# | Line 428 | Line 428 | m_light(m, r) /* ray hit a light source */ | |
---|---|---|
428 | register OBJREC *m; | |
429 | register RAY *r; | |
430 | { | |
431 | – | /* check for behind */ |
432 | – | if (r->rod < 0.0) |
433 | – | return; |
431 | /* check for over-counting */ | |
432 | if (wrongsource(m, r) || badambient(m, r)) | |
433 | return; | |
# | Line 444 | Line 441 | register RAY *r; | |
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 */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |