calculating tangents for normal maps