Pupil weighting