We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a05632 + 14c776f commit ac43768Copy full SHA for ac43768
modules/gltf/gltf_document.cpp
@@ -2796,7 +2796,7 @@ Error GLTFDocument::_parse_meshes(Ref<GLTFState> p_state) {
2796
2797
Vector<Vector3> normals = array[Mesh::ARRAY_NORMAL];
2798
for (int k = 0; k < vertex_num; k++) {
2799
- Vector3 tan = Vector3(normals[i].z, -normals[i].x, normals[i].y).cross(normals[k].normalized()).normalized();
+ Vector3 tan = Vector3(normals[k].z, -normals[k].x, normals[k].y).cross(normals[k].normalized()).normalized();
2800
tangentsw[k * 4 + 0] = tan.x;
2801
tangentsw[k * 4 + 1] = tan.y;
2802
tangentsw[k * 4 + 2] = tan.z;
0 commit comments