My wife used to do glass painting. You got tubes of glass relief which you draw into the glass. It hardens into grey / black lines and looks like stained glass lead. You then paint inside the relief with the glass paint. It’s quite beautiful once it’s done and finished
We had a mirror painted which caught the sun for years (through a front door) and some glasses on a window edge. Both seemed to be fine.