I wear prescription glasses all the time. I flew a perspex bubble cockpit and generally do not need sunglasses - an IQ reducer (peaked cap) actually does the job very well and I find makes things like the Garmin much easier to read.
I do have a set of prescription sunglasses as well - they get worn very occasionally. So occasionally useful but I would not bother unless you are fflying somewhere really warm and bright - like the south of France or better.