NSMBW-Decomp
A decompilation of New Super Mario Bros. Wii
Loading...
Searching...
No Matches
m_color.cpp
1#include <game/mLib/m_color.hpp>
2
3void mColor::lerp(const GXColor &c1, const GXColor &c2, float t) {
4 float s = 1.0f - t;
5 r = c1.r * s + c2.r * t;
6 g = c1.g * s + c2.g * t;
7 b = c1.b * s + c2.b * t;
8 a = c1.a * s + c2.a * t;
9}
void lerp(const GXColor &c1, const GXColor &c2, float t)
Linearly interpolates all RGBA channels between two color values.
Definition m_color.cpp:3