mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 01:58:19 +00:00
Only lighten if too dark
This commit is contained in:
parent
93265dbb9c
commit
987b9f69de
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue