Files
orx/orx-glslify/src/test/resources/glslify/glsl-easings/circular-in-out.glsl
2020-04-25 11:08:43 +02:00

8 lines
195 B
GLSL

float circularInOut(float t) {
return t < 0.5
? 0.5 * (1.0 - sqrt(1.0 - 4.0 * t * t))
: 0.5 * (sqrt((3.0 - 2.0 * t) * (2.0 * t - 1.0)) + 1.0);
}
#pragma glslify: export(circularInOut)