From 3e29ee1323135bc648013b8f4e1338d7bce64961 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sun, 25 Feb 2024 11:16:57 -0500 Subject: [PATCH] Remove unnecessary normalize from tangent import --- parts/mdl/mdlimport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/mdl/mdlimport.cpp b/parts/mdl/mdlimport.cpp index 1b3a137..48ceae7 100644 --- a/parts/mdl/mdlimport.cpp +++ b/parts/mdl/mdlimport.cpp @@ -144,7 +144,7 @@ void importModel(physis_MDL &existingModel, const QString &filename) // 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::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;