I have wore glasses most of my life and I have never had any trouble. I wear a sports band on my glasses just in case the glasses get caught when taking off my mask.
There are some sweaty nights where I have to clean my glasses in between innings.
If I really want ot tick off a team, I'll wait until right after a close play to do it.
I haven't tried shampoo, but I've used shaving cream and just a little bit helps the glasses from fogging up.