Έκδοση
3.5-2404
Διακλάδωση
master
Ημερομηνία
πριν από 10 χρόνια, 6 μήνες
Windows x64 Windows x86 Mac OS X Android
Commit
75f2738f5c32bc7a28078983d1a7da2c31e7acbf
Αλλαγή συγγραφέα
degasus
Αλλαγή περιγραφής
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.