Local regulation of luminance gain