aras-p/glsl-optimizer — pull request #24 by zeux (2013-04-29 22:15:53+00:00)
Title: Fix MSVC8 compilation error: INFINITY constant does not exist

IEEE754-compliant math will do the right thing here without extra checks.

And by "the right thing" I mean "normalize(float3(0,0,0)) will return float3(NaN, NaN, NaN)".
Not sure how NaN (or Infinity, for that matter) is translated into GLSL...