I have migraines - it is NOT rude to wear sunglasses indoors or in shopping centres. Not if taking them off means you are in pain.

(For women, it isn't rude to wear a hat indoors. Think about weddings: it's expected!)