mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +01:00
7ed2d73406
The blending rate of colors in a square vertices should be calculated by the lower-right point, not the upper-left point. mix(a, b, rate) function calculates (1-rate)*a + rate*b, so a should be weighted if rate is close to 0, and b should be weighted if rate is close to 1. The current implementation was opposite. Rendering results don't seem to be changed so much actually, but the current implementation doesn't make sense. |
||
---|---|---|
.. | ||
shader.go |