remove duplicate user_data vector from world_vertex

update max. number of vertex attributes
to avoid user data getting "reused" across mesh draws
This commit is contained in:
Wls50
2024-07-06 20:25:53 +02:00
parent 18b18eed08
commit 04eff45b5d
2 changed files with 1 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ void gl::vao::bind()
glEnableVertexAttribArray(param.attrib);
}
for (size_t i = params.size(); i < 4; i++)
for (size_t i = params.size(); i < 5; i++)
glDisableVertexAttribArray(i);
if (ebo)

View File

@@ -18,7 +18,6 @@ struct world_vertex {
glm::dvec3 position;
glm::vec3 normal;
glm::vec2 texture;
glm::vec4 user_data;
// overloads
// operator+