Fixed bug in the shader.

Attenuation now correct.