and a simple fragment shader ... By using fract we'll keep just the fractional part so for example when gl_FragCoord is 75. 75 / 50 = 1.5, fract(1.5) = 0.5 ...
確定! 回上一頁