indice-aware calculate_tangents

This commit is contained in:
milek7
2020-10-19 15:04:03 +02:00
parent 5b50a39610
commit 6a48293a40
5 changed files with 19 additions and 15 deletions

View File

@@ -154,7 +154,7 @@ void vr_openvr::begin_frame()
glm::vec2(vertex->rfTextureCoord[0], vertex->rfTextureCoord[1])));
}
gfx::calculate_tangents(vertices, GL_TRIANGLES);
gfx::calculate_tangents(vertices, indices, GL_TRIANGLES);
submodel_name = std::string(component == -1 ? rendermodel_name : component_name);
sm = controllers[i]->model->AppendChildFromGeometry(submodel_name, "__root", vertices, indices);