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

@ -7,7 +7,6 @@
#include <volk/volk.h>
#include <GLFW/glfw3.h>
#include <spdlog/spdlog.h>
#include <utils/color.h>
float DEFAULT_COLOR_MAP[][3] = {
{0x00, 0x00, 0x20},

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;
}
}