Only lighten if too dark

This commit is contained in:
Learath 2019-04-25 23:29:31 +03:00
parent 93265dbb9c
commit 987b9f69de

View file

@ -228,7 +228,11 @@ public:
class ColorHSLA : public color4_base
{
using color4_base::color4_base;
void ClampLighting() { l = 0.5f + l * 0.5f; };
void ClampLighting()
{
if(l < 0.5f)
l = 0.5f + l * 0.5f;
}
};
class ColorRGBA : public color4_base