Sex is an activity involving multiple benefits. In India, according to scriptures, the primary purpose of marriage is to have progeny and then the other uses are gaining sexual pleasure, the performance of religious rites, and through them experiencing bliss or happiness.
Nowadays, there are plenty of perverted interpretations regarding sex.
I heard that Adi Shankaracharya interpreted/compared sex for progeny as a divine Yagna. In which scripture did Adi Shankaracharya compare sex for progeny as a Yagna and what is his Yagnic parlance of sex?