Change some naming to fix some confusion around RgbToHsv

This commit is contained in:
Jordy Ruiz 2019-01-17 17:32:59 +01:00
parent 60f13f4555
commit 6b8255a426

View file

@ -143,10 +143,10 @@ inline vec3 RgbToHsv(vec3 rgb)
if(h_max != 0.0f)
s = (h_max - h_min)/h_max;
// lightness
float l = h_max;
// value
float v = h_max;
return vec3(hue, s, l);
return vec3(hue, s, v);
}
#endif