| 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 > 0.1) |
| 97 |
< |
if (re > 92.) |
| 96 |
> |
if (re > 0.1) { |
| 97 |
> |
if (re > 92.) { |
| 98 |
|
r->rweight = 0.0; |
| 99 |
< |
else |
| 99 |
> |
} else { |
| 100 |
|
r->rweight *= exp(-re); |
| 101 |
+ |
} |
| 102 |
+ |
} |
| 103 |
|
} |
| 104 |
|
rayclear(r); |
| 105 |
|
if (r->rweight <= 0.0) /* check for expiration */ |
| 304 |
|
/* foreground */ |
| 305 |
|
fr = *r; |
| 306 |
|
if (coef > FTINY) { |
| 307 |
+ |
fr.rweight *= coef; |
| 308 |
|
scalecolor(fr.rcoef, coef); |
| 309 |
|
foremat = rayshade(&fr, fore); |
| 310 |
|
} |
| 311 |
|
/* background */ |
| 312 |
|
br = *r; |
| 313 |
|
if (coef < 1.0-FTINY) { |
| 314 |
+ |
br.rweight *= 1.0-coef; |
| 315 |
|
scalecolor(br.rcoef, 1.0-coef); |
| 316 |
|
backmat = rayshade(&br, back); |
| 317 |
|
} |