From 6b8255a4264353c445a74153b1a4533ebd7b4840 Mon Sep 17 00:00:00 2001 From: Jordy Ruiz Date: Thu, 17 Jan 2019 17:32:59 +0100 Subject: [PATCH] Change some naming to fix some confusion around RgbToHsv --- src/base/color.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/color.h b/src/base/color.h index b63b8d333..c4bb05ef5 100644 --- a/src/base/color.h +++ b/src/base/color.h @@ -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