mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Change some naming to fix some confusion around RgbToHsv
This commit is contained in:
parent
60f13f4555
commit
6b8255a426
|
@ -143,10 +143,10 @@ inline vec3 RgbToHsv(vec3 rgb)
|
||||||
if(h_max != 0.0f)
|
if(h_max != 0.0f)
|
||||||
s = (h_max - h_min)/h_max;
|
s = (h_max - h_min)/h_max;
|
||||||
|
|
||||||
// lightness
|
// value
|
||||||
float l = h_max;
|
float v = h_max;
|
||||||
|
|
||||||
return vec3(hue, s, l);
|
return vec3(hue, s, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue