last onewfds
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user