| # | Line 642 | Line 642 | oputW( /* print coefficient */ | |
|---|---|---|
| 642 | ) | |
| 643 | { | |
| 644 | RREAL contr[3]; | |
| 645 | + | /* shadow ray not on source? */ |
| 646 | + | if (r->rsrc >= 0 && source[r->rsrc].so != r->ro) |
| 647 | + | setcolor(contr, 0.0, 0.0, 0.0); |
| 648 | + | else |
| 649 | + | raycontrib(contr, r, PRIMARY); |
| 650 | ||
| 646 | – | raycontrib(contr, r, PRIMARY); |
| 651 | (*putreal)(contr, 3); | |
| 652 | } | |
| 653 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |