Nanoscale optical components, such as lenses and waveguides, are used in imaging and computing platforms. Yet it’s challenging to make these components with more than one refractive index—a property ...