As a society rule, you're expected to be respectful of your host and get dressed up. That shows you respect them and share their happiness. If you are the groom's ex you can do street wear that just screams " I don't give a damn fuck about you or your stupid wedding"