Does GLSL have any pre-defined constants for +/-infinity or NaN? I\'m doing this as a workaround but I wonder if there is a cleaner way:
// GLSL FRAGMENT SHA
There are no pre-defined constants for it, but there is the isinf function to test if something is infinity.
isinf
While I'm at it, are there constants for other things like FLT_MAX FLT_EPSILON etc the way there are in C?
No, there are not.