mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
Sign change. Forgot we flip the texture coordinates.
This commit is contained in:
parent
06e050f1c1
commit
156b3dd2e6
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue