最近学习「the book of shaders」,了解到这种完全依靠fragment shader ... 间的 random 函数,可以使用 y = fract(sin(x)*1.0); ,只保留小数部分。
確定! 回上一頁