fix: shader fade animation linear curve

This commit is contained in:
2026-09-30 14:17:16 +02:00
parent 5330ae71d2
commit d259c6ffbe
2 changed files with 2 additions and 9 deletions
-5
View File
@@ -29,9 +29,4 @@ inline std::array<float, 3> kelvinToGain(int kelvin) {
return {static_cast<float>(r), static_cast<float>(g), static_cast<float>(b)};
}
inline float easeInOutCubic(float x) {
return x < 0.5f ? 4.f * x * x * x
: 1.f - std::pow(-2.f * x + 2.f, 3.f) / 2.f;
}
} // namespace ZShell::services