Fixed color interpolation bug

This commit is contained in:
Ryzerth
2021-05-03 02:18:26 +02:00
parent c6c15a446b
commit 0bc1bd8549
2 changed files with 0 additions and 7 deletions

View File

@ -41,10 +41,4 @@ namespace color {
g += m;
b += m;
}
inline void interpRGB(float ar, float ag, float ab, float br, float bg, float bb, float& or, float& og, float& ob, float ratio) {
or = ar + (br - ar) * ratio;
og = ag + (bg - ag) * ratio;
ob = ab + (bb - ab) * ratio;
}
}