Both, being ugly can give you a chip on your shoulder which can lead you to resent God and lead a life of evil. At that point, on'e inner evil can be seen through the eyes making one even uglier.
That's why fake news TV shows in the 70's and 80's used to have themes of the ugly girl in school secretly having the best personality and true inner beauty which makes the good looking guy fall in love with her. This NEVER happens because it is a lie. Beautiful girls have an inner beauty that shines through.