Sign change. Forgot we flip the texture coordinates.

This commit is contained in:
Andrzej Kapolka 2013-10-30 11:55:22 -07:00
parent 06e050f1c1
commit 156b3dd2e6

View file

@ -685,7 +685,7 @@ void setTangents(FBXMesh& mesh, int firstIndex, int secondIndex) {
}
glm::vec2 texCoordDelta = mesh.texCoords.at(secondIndex) - mesh.texCoords.at(firstIndex);
mesh.tangents[firstIndex] += glm::cross(glm::angleAxis(
-glm::degrees(atan2f(texCoordDelta.t, texCoordDelta.s)), normal) * glm::normalize(bitangent), normal);
-glm::degrees(atan2f(-texCoordDelta.t, texCoordDelta.s)), normal) * glm::normalize(bitangent), normal);
}
FBXGeometry extractFBXGeometry(const FBXNode& node, const QVariantHash& mapping) {