Now in use on x-ray beamlines worldwide, shearing interferometry and Hartmann wavefront sensing provide effective feedback for measuring optimizing high-quality beams. Conventionally, both approaches spatially modulate the beam properties (amplitude or phase) using two-tone, binary patterns, leading to deleterious diffraction effects that must be mitigated. In shearing, presence of multiple ord...