obs-transitions: Add 'slide' transition

Closes jp9000/obs-studio#516
This commit is contained in:
hwdro
2016-03-08 23:16:17 +02:00
committed by jp9000
parent 58b108b261
commit e3a9f395a6
7 changed files with 229 additions and 13 deletions

View File

@@ -0,0 +1,11 @@
#pragma once
static inline float cubic_ease_in_out(float t)
{
if (t < 0.5f) {
return 4.0f * t * t * t;
} else {
float temp = (2.0f * t - 2.0f);
return (t - 1.0f) * temp * temp + 1.0f;
}
}