What am I?

Against the sun I protect your eyes and am often worn on the face of spies