View Full Version : fract() precison issue?

06-30-2010, 02:55 PM
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.