Graphics: Change Vertex color to 4 components.
This commit is contained in:
parent
edfc5298e1
commit
8675018522
7 changed files with 12 additions and 12 deletions
|
|
@ -130,10 +130,10 @@ void BatchRenderer2D::render()
|
|||
|
||||
// Setup color
|
||||
glEnableVertexAttribArray(VertexAttribColor0);
|
||||
glVertexAttribPointer(VertexAttribColor0, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex2D), (void*) 8);
|
||||
glVertexAttribPointer(VertexAttribColor0, 4, GL_FLOAT, GL_FALSE, sizeof(Vertex2D), (void*) 8);
|
||||
|
||||
glEnableVertexAttribArray(VertexAttribTexCoord0);
|
||||
glVertexAttribPointer(VertexAttribTexCoord0, 2, GL_FLOAT, GL_FALSE, sizeof(Vertex2D), (void*) 20);
|
||||
glVertexAttribPointer(VertexAttribTexCoord0, 2, GL_FLOAT, GL_FALSE, sizeof(Vertex2D), (void*) 24);
|
||||
|
||||
// Set shader uniforms.
|
||||
m_textShader.enable();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue