mirror of
https://github.com/JulianGro/overte.git
synced 2025-08-09 21:23:03 +02:00
Switched fade curve to easeInOutQuad
This commit is contained in:
parent
7d58c9a741
commit
f3d252ee65
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ float FadeEffect::computeFadePercent(quint64 startTime) const {
|
||||||
const double INV_FADE_PERIOD = 1.0 / (double)(3 * USECS_PER_SECOND);
|
const double INV_FADE_PERIOD = 1.0 / (double)(3 * USECS_PER_SECOND);
|
||||||
double fraction = (double)(usecTimestampNow() - startTime) * INV_FADE_PERIOD;
|
double fraction = (double)(usecTimestampNow() - startTime) * INV_FADE_PERIOD;
|
||||||
if (fraction < 1.0) {
|
if (fraction < 1.0) {
|
||||||
fadeAlpha = Interpolate::simpleNonLinearBlend(fraction);
|
fadeAlpha = Interpolate::easeInOutQuad(fraction);
|
||||||
}
|
}
|
||||||
return fadeAlpha;
|
return fadeAlpha;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue