diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-02-24 19:29:27 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-02-24 19:29:27 +0000 |
commit | 2c6257a4460de7b0c75723aebf96cf265e078530 (patch) | |
tree | f1abacfc6f64b5718a7ef6398001655f0103bf04 /gfx/models/mesh.cpp | |
parent | Fixed up vector operator+ element (diff) | |
download | ilt-2c6257a4460de7b0c75723aebf96cf265e078530.tar.bz2 ilt-2c6257a4460de7b0c75723aebf96cf265e078530.tar.xz ilt-2c6257a4460de7b0c75723aebf96cf265e078530.zip |
Support for model colours mixed with textures
Diffstat (limited to 'gfx/models/mesh.cpp')
-rw-r--r-- | gfx/models/mesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gfx/models/mesh.cpp b/gfx/models/mesh.cpp index 85be84c..3db1ad5 100644 --- a/gfx/models/mesh.cpp +++ b/gfx/models/mesh.cpp @@ -7,7 +7,7 @@ Mesh::Mesh(const std::span<const Vertex> vertices, const std::span<const unsigned int> indices, GLenum m) :
m_numIndices {static_cast<GLsizei>(indices.size())}, mode {m}
{
- VertexArrayObject<Vertex>::configure<&Vertex::pos, &Vertex::texCoord, &Vertex::normal>(
+ VertexArrayObject<Vertex>::configure<&Vertex::pos, &Vertex::texCoord, &Vertex::normal, &Vertex::colour>(
m_vertexArrayObject, m_vertexArrayBuffers[0], m_vertexArrayBuffers[1], vertices, indices);
}
|