Patterned Thin-Film Optics