diff options
| author | Vaxry <vaxry@vaxry.net> | 2023-11-11 00:52:40 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2023-11-11 00:52:40 +0000 |
| commit | e44d6de555da72bd45ebd01c1293d53ea2700d3f (patch) | |
| tree | 19b42ec45750cbfe4bd8a9268940776c0a2317f0 /src/helpers/Color.hpp | |
| parent | 427153e86ad7070ea0e4d39f7fd348b8f720e055 (diff) | |
shadow: alpha treatment improvements
Diffstat (limited to 'src/helpers/Color.hpp')
| -rw-r--r-- | src/helpers/Color.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/helpers/Color.hpp b/src/helpers/Color.hpp index ffd6d2d8..98ffa476 100644 --- a/src/helpers/Color.hpp +++ b/src/helpers/Color.hpp @@ -5,7 +5,7 @@ class CColor { public: CColor(); - CColor(float, float, float, float); + CColor(float r, float g, float b, float a); CColor(uint64_t); float r = 0, g = 0, b = 0, a = 1.f; @@ -27,4 +27,8 @@ class CColor { bool operator==(const CColor& c2) const { return r == c2.r && g == c2.g && b == c2.b && a == c2.a; } + + CColor stripA() const { + return {r, g, b, 1}; + } }; |
