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)
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue