Method of deciding location and intensity of light sources