Penalty should be nonzero if ambient is higher than the threshold