Merge pull request #1983 from Dune-jr/fix-rgbtohsv

Change some naming to fix some confusion around RgbToHsv
This commit is contained in:
oy 2019-01-17 17:40:56 +01:00 committed by GitHub
commit fbc61d22fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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