Imported Upstream version 0.14.2+dfsg1
This commit is contained in:
parent
fb3990e9e5
commit
41a01dbf05
529 changed files with 25112 additions and 2336 deletions
11
plugins/obs-transitions/easings.h
Normal file
11
plugins/obs-transitions/easings.h
Normal 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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue