| # | Line 289 | Line 289 | trace_contrib(RAY *r) | |
|---|---|---|
| 289 | if (mp == NULL) /* not in our list? */ | |
| 290 | return; | |
| 291 | /* zero contribution? */ | |
| 292 | < | if (contrib && sintens(r->rcol) <= FTINY) |
| 292 | > | if (contrib) { |
| 293 | > | for (i = NCSAMP; i--; ) |
| 294 | > | if (r->rcoef[i]*r->rcol[i] > FTINY) |
| 295 | > | break; /* something non-zero */ |
| 296 | > | if (i < 0) |
| 297 | > | return; |
| 298 | > | } else if (sintens(r->rcoef) <= FTINY) |
| 299 | return; | |
| 300 | ||
| 301 | worldfunc(RCCONTEXT, r); /* else set context */ | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |