mirror of
https://github.com/g-truc/glm.git
synced 2024-11-25 18:04:34 +00:00
Merge pull request #1097 from gottfriedleibniz/fix/color
fix hsvColor types #1097
This commit is contained in:
commit
d33344bd86
@ -63,9 +63,9 @@ namespace glm
|
||||
GLM_FUNC_QUALIFIER vec<3, T, Q> hsvColor(const vec<3, T, Q>& rgbColor)
|
||||
{
|
||||
vec<3, T, Q> hsv = rgbColor;
|
||||
float Min = min(min(rgbColor.r, rgbColor.g), rgbColor.b);
|
||||
float Max = max(max(rgbColor.r, rgbColor.g), rgbColor.b);
|
||||
float Delta = Max - Min;
|
||||
T Min = min(min(rgbColor.r, rgbColor.g), rgbColor.b);
|
||||
T Max = max(max(rgbColor.r, rgbColor.g), rgbColor.b);
|
||||
T Delta = Max - Min;
|
||||
|
||||
hsv.z = Max;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user