Files
orx/orx-glslify/src/test/resources/glslify/glsl-easings/cubic-in-out.glsl
2020-03-01 14:31:06 +01:00

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)