Fract() precison issue?

Is it legal that fract(x) returns 1.0? I ran into an spurious error where this seemed to happen sometimes. fract(fract(x)) helped, but I doubt if this is a general problem with floating point precision or maybe a bug in the GLSL implementation.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.