Attenuation doesn`t work if brightness is different on one of the 3 axis.
texCoords.x = lightVector.x/(light->brightness.x * 8) + 0.5f;
texCoords.y = lightVector.y/(light->brightness.y * 2) + 0.5f;
texCoords.z = lightVector.z/(light->brightness.z * 2) + 0.5f;
where lightVector is the tangent space vector of the light ( non tangent light vec = ligh.origin - vertex )
Now if x isn`t equal to y and z the attenuation is not correct, what is wrong ?