我使用的工作代码而不是 fmod 是: float mod(float x, float y) { return x - y * floor(x/y) } 对比GLSL mod , MSDN says HLSL fmod 函数这样做:.
確定! 回上一頁