Red wine ang white wine glass?

what it’s looks like, why we have to use the different glass while drinking wine, does it has an effect by using the right glass with the right wine?