mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 12:53: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);
|
||||
double fraction = (double)(usecTimestampNow() - startTime) * INV_FADE_PERIOD;
|
||||
if (fraction < 1.0) {
|
||||
fadeAlpha = Interpolate::simpleNonLinearBlend(fraction);
|
||||
fadeAlpha = Interpolate::easeInOutQuad(fraction);
|
||||
}
|
||||
return fadeAlpha;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue