They had this in Berlin city-train (S-Bahn) stop Südkreutz. I never consented, and now wear a scarf over my face in that station.
I think it would be more effective to wear big eyeglasses (like Wayfarers) but I'm not sure, maybe someone can chime in?
Regarding sunglasses in Berlin, police stopped me on my e-moped recently and forced me into a restaurant bathroom to do a pee test for drugs, and they told me the reason was that I wore sunglasses when riding and thus looked suspicious. I wear then to protect my eyes from dust and bugs. I was absolutely sober, and going home from church. My takeaway is, Berlin police want your face.