mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
indice-aware calculate_tangents
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user