Fix calculation and handling of precalculated light colors.