In HLSL, you can use the built-in fmod function for this. I'm not sure what's going wrong with your implementation, though. It looks mathematically correct.
確定! 回上一頁