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:
parent
1b6ec85404
commit
3e29ee1323
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue