dolphin-emu/dolphin — pull request #441 by galop1n (2014-05-31 20:55:37+00:00)
Title: Render: Fix lighting bug with specular attenuation, the gx normalize the light direction and it is expected to receive from the game vectors with norm>1 ( probably better for precision ).

The GX normalize the element in the light parameters only in some cases with specular enable. So the simplest was to normalize in the shader. Even if it would be possible to normalize in the constant buffer, it would create more constant buffer update. To keep in mind for future optimization.