glsl smoothstep step

smoothstep (x y a )参数   y必须大于x 然后 a如果小于x 返回 0 如果a>y 返回1 在x y之间 返回  3a^2-2a^3

step (x a)参数 如果a小于x就是0 否则 返回1  相当于比较大小

猜你喜欢

转载自blog.csdn.net/qq_35158695/article/details/84327987
今日推荐