GLSL fract函数真的是返回小数部分吗

GLSL fract函数真的是返回小数部分吗 Parameters x specify the value to evaluate. Description fract() returns the fractional part of x. This is calculated as x - floor(x). 大致一看,没什么问题,但是仔细看下负数的部分,如果是小数部分,不应该是下面的图像吗?这
相关文章
相关标签/搜索