last onewfds

This commit is contained in:
2026-10-18 14:24:36 -04:00
parent fbe079559a
commit d365763209
4 changed files with 6 additions and 3 deletions
+2
View File
@@ -37,6 +37,7 @@ class Mesh : public Object , public Renderable, public t_package , public MeshDa
protected:
public:
Texture* meshTexture = nullptr;
glm::vec4 colorOverride = glm::vec4(0.0f); // rgb + strength; 0 = use the texture's own colour
VAO vao;
VBO vbo;
@@ -469,6 +470,7 @@ public:
else glBindTexture(GL_TEXTURE_2D, 0);
ShaderProgram.SetMat4("modl", topass);
ShaderProgram.Set4F("colorOverride", colorOverride);
vao.Bind();
glDrawElements(GL_TRIANGLES, indices.size(), GL_UNSIGNED_INT, 0);
vao.Unbind();