我使用的工作代码 fmod 是: float mod(float x, float y) { return x - y * floor(x/y) }. 与GLSL相比 mod ,MSDN表示 HLSL fmod 功能可以做到这一点:.
確定! 回上一頁