Fix dot product bug and inverted frag coord