| # | Line 403 | Line 403 | raycontrib( /* compute (cumulative) ray contribution | |
|---|---|---|
| 403 | int flags | |
| 404 | ) | |
| 405 | { | |
| 406 | – | double eext[3]; |
| 407 | – | int i; |
| 408 | – | |
| 409 | – | eext[0] = eext[1] = eext[2] = 0.; |
| 406 | rc[0] = rc[1] = rc[2] = 1.; | |
| 407 | ||
| 408 | while (r != NULL && r->crtype&flags) { | |
| 409 | < | for (i = 3; i--; ) { |
| 409 | > | int i = 3; |
| 410 | > | while (i--) |
| 411 | rc[i] *= colval(r->rcoef,i); | |
| 415 | – | eext[i] += r->rot * colval(r->cext,i); |
| 416 | – | } |
| 412 | r = r->parent; | |
| 413 | } | |
| 419 | – | for (i = 3; i--; ) |
| 420 | – | rc[i] *= (eext[i] <= FTINY) ? 1. : |
| 421 | – | (eext[i] > 92.) ? 0. : exp(-eext[i]); |
| 414 | } | |
| 415 | ||
| 416 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |