| 93 |
|
colval(ro->cext,RED) : colval(ro->cext,GRN); |
| 94 |
|
if (colval(ro->cext,BLU) < re) re = colval(ro->cext,BLU); |
| 95 |
|
re *= ro->rot; |
| 96 |
< |
if (re > .1) |
| 97 |
< |
r->rweight *= exp(-re); |
| 96 |
> |
if (re > 0.1) |
| 97 |
> |
if (re > 92.) |
| 98 |
> |
r->rweight = 0.0; |
| 99 |
> |
else |
| 100 |
> |
r->rweight *= exp(-re); |
| 101 |
|
} |
| 102 |
|
rayclear(r); |
| 103 |
+ |
if (r->rweight <= 0.0) /* check for expiration */ |
| 104 |
+ |
return(-1); |
| 105 |
|
if (r->crtype & SHADOW) /* shadow commitment */ |
| 106 |
|
return(0); |
| 107 |
|
if (maxdepth <= 0 && rc != NULL) { /* Russian roulette */ |
| 373 |
|
} |
| 374 |
|
for (i = 3; i--; ) |
| 375 |
|
rc[i] *= (eext[i] <= FTINY) ? 1. : |
| 376 |
< |
(eext[i] > 300.) ? 0. : exp(-eext[i]); |
| 376 |
> |
(eext[i] > 92.) ? 0. : exp(-eext[i]); |
| 377 |
|
} |
| 378 |
|
|
| 379 |
|
|