fix #1 tangent-space calculation and texture matrix for flipping