One way of doing this in a dark-field mask, for example, where the mask features may be simple openings, is to provide, in each opening whose transmissivity is to be altered, a lens, filter or other optical element that changes the relative phase of light passing through it.