diff options
Diffstat (limited to 'frontend/shared_cpp/mathlib.h')
-rw-r--r-- | frontend/shared_cpp/mathlib.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontend/shared_cpp/mathlib.h b/frontend/shared_cpp/mathlib.h index a08ec39..3ed61cd 100644 --- a/frontend/shared_cpp/mathlib.h +++ b/frontend/shared_cpp/mathlib.h @@ -110,6 +110,10 @@ struct Vector4 { float scale = 1.f / 255.f; return { r * scale, g * scale, b * scale, a * scale }; } + + Vector4 toNormalizedColor() { + return fromColor(x, y, z, w); + } }; struct Mat4x4 { |