Leviticus 19:1 - 20:27 (Parshat K'doshim)
1 The Lord spoke to Moses, saying:
2 Speak to the whole Israelite community and say to them:
You shall be holy, for I, the Lord your God, am holy.
Even in the 7 Noahide laws, it states "Incestuous and adulterous relations are forbidden". Human beings are not sexual objects, nor is pleasure the ultimate goal of life. This goes for ALL of Mankind.
G-d creates each individual with challenges in their lives. Some people have a tendency to have a short temper, others have a tendency to want to amass as many objects and material things that they can in life. Still, others, feel a need to stray sexually and find it hard to stay faithful to their spouses or morally upright. And there are still others who feel a 'same sex attraction' (SSA) and find it easier to build a relationship, sexual and emotional with someone of their same sex. But these behaviors are anti -'holy' and pull Man away from G-dliness.
Sex is a beautiful and wonderful thing. It is a gift from G-d, after joining a man and woman in marriage--a holy matrimony, to build a loving, holy relationship together and to build families. Sex is not to be used casually to fill an appetite and to satisfy lust, and it certainly goes against holy behavior to gaze intentionally at forbidden images and masturbate, thereby distorting the gift that G-d has given us into a means of self-pleasure, and as an outlet for the sexual fantasies of the mind