feat: src12 scales

This commit is contained in:
2025-11-09 17:58:06 +01:00
parent a8a03b94e1
commit 700f75f43b
5 changed files with 62 additions and 23 deletions
+12
View File
@@ -9,6 +9,18 @@
// BASICS
float istep(float x, float y) {
return 1 - step(x, y);
}
float estep(float x, float y) {
return smoothstep(x - 0.0001, x + 0.0001, y);
}
float iestep(float x, float y) {
return 1 - estep(x, y);
}
float ease(float x) {
return 0.5 - cos(max(min(x, 1.0), 0.0)*PI) * 0.5;
}