I had a similar childhood actually. My mom resolved (on the advice of a wise friend) to try to not say anything bad about my father in my hearing. She wasn't always successful, but she tried. Now that I am an adult, I see clearly who I would rather be like.
Good luck OP. It will be hard sometimes, but your daughter will grow up to appreciate you (although she may hate you for a while during the teen years), don't be discouraged!