degasus 75f2738f5c VideoCommon: fix ogl lighting bug which happens because of NaN emulation
attn is sometimes very big (eg 1e27), so attn*attn doesn't fit into a float.
So the funny part here is: 0.0 * (1e27*1e27) = 0.0 * Inf = NaN

As the shader compiler is allowed to change the order of multiplications,
this issue isn't fixed completely.
2013-09-16 17:10:19 +02:00
..
2013-04-24 09:21:54 -04:00
2013-08-14 11:47:23 +00:00
2013-09-01 23:33:35 -04:00
2013-04-24 09:21:54 -04:00