| # | Line 304 | Line 304 | raymixture( /* mix modifiers */ | |
|---|---|---|
| 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 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |