smoothstep(edge0, edge1, x): edge0<=edge0时为0.0, x>=edge1时为1.0
x的值在edge0和edge1之间,包含两端。
x<=edge0时为0.0
x>=edge1时为1.0
数学运算:
y = smoothstep(edge0, edge1, x);
y = 3 * x^2 - 2* x^3
smoothstep(edge0, edge1, x): edge0<=edge0时为0.0, x>=edge1时为1.0
x的值在edge0和edge1之间,包含两端。
x<=edge0时为0.0
x>=edge1时为1.0
数学运算:
y = smoothstep(edge0, edge1, x);
y = 3 * x^2 - 2* x^3