What do you guys that wear glasses do when working in the rain

I had to finish after a few jobs today baseball cap was soaked so i took it of then i couldn't see cause of rain water on my glasses.
The only thing i can think of is water proof base ball cap if they do them and some kind of water repellent spray for my glasses.
Thanks Paul