Lighting Math

The total color, from all lighting, is:

color =  color_from_light0
       + color_from_light1
       + color_from_light2
       + ...
       + material_ambient * lightmodel_ambient
       + material_emission