The degree of purity determines the degree of union.
"The supernatural union exists when God's will and the soul's will are in conformity.
Therefore the soul rests transformed in God through love...
The illumination of the soul and its union with God corresponds to its purity."
~St. John of the Cross Ascent of Mt. Carmel BK. 2 CH. 5