🔧 Use clutter version of easing

This commit is contained in:
Simon Schneegans
2022-05-12 21:07:23 +02:00
parent 9d7d912261
commit f59d354729
+3 -1
View File
@@ -34,10 +34,12 @@ function standardUniforms() {
}
// This provides some basic easing function. More can be added if required!
// Taken from here:
// https://gitlab.gnome.org/GNOME/mutter/-/blob/main/clutter/clutter/clutter-easing.c
function easing() {
return `
float easeOutQuad(float x) {
return 1.0 - (1.0 - x) * (1.0 - x);
return -1.0 * x * (x - 2);
}
`;
}