8 lines
149 B
GLSL
8 lines
149 B
GLSL
float cubicInOut(float t) {
|
|
return t < 0.5
|
|
? 4.0 * t * t * t
|
|
: 0.5 * pow(2.0 * t - 2.0, 3.0) + 1.0;
|
|
}
|
|
|
|
#pragma glslify: export(cubicInOut)
|