1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-26 05:37:46 +00:00

Remove unnecessary normalize from tangent import

This commit is contained in:
Joshua Goins 2024-02-25 11:16:57 -05:00
parent 1b6ec85404
commit 3e29ee1323

View file

@ -144,7 +144,7 @@ void importModel(physis_MDL &existingModel, const QString &filename)
// calculate binormal, because glTF won't give us those!! // calculate binormal, because glTF won't give us those!!
const glm::vec3 normal = glm::vec3(vertex.normal[0], vertex.normal[1], vertex.normal[2]); const glm::vec3 normal = glm::vec3(vertex.normal[0], vertex.normal[1], vertex.normal[2]);
const glm::vec4 tangent = *tangent1Data; const glm::vec4 tangent = *tangent1Data;
const glm::vec3 bitangent = glm::normalize(glm::cross(normal, glm::vec3(tangent))); const glm::vec3 bitangent = glm::cross(normal, glm::vec3(tangent));
const float handedness = tangent.w; const float handedness = tangent.w;