smoothstep
一回微分しても連続
$ -2t^3 + 3t^2
code:cpp
float smoothstep(float a, float b, float t) {
float x = saturate((t - a) / (b - a));
return x * x * (3.0 - 2.0 * x);
}
傾きの最大は$ t = 0.5のときであり、その値は$ 1.5
See also:
https://gyazo.com/9198446ee1cfe8df5e7919414911e16c