Calculates the shading of each pixel based on its normal vector and the position of the light sources.