shader中的if语句优化

可以借用lerp和step来拼接模仿语句

lerp(a,b,step(value,c))

posted @ 2020-11-16 12:28  钢与铁  阅读(730)  评论(0编辑  收藏  举报