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). 大致一看,沒什麼問題,但是仔細看下負數的部分,如果是小數部分,不應該是下面的圖像嗎?這
相關文章
相關標籤/搜索