I had to change vec2 to float2 and put the random function at the top. In addition to that I also had to write a mod function because GLSL mod() != HLSL fmod.
確定! 回上一頁