mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
Merge pull request #1983 from Dune-jr/fix-rgbtohsv
Change some naming to fix some confusion around RgbToHsv
This commit is contained in:
commit
fbc61d22fc
|
@ -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