Fixed the Z coordinate not working in particle renderer

dev
Tomasz Kapuściński 2022-01-22 01:50:10 +01:00
parent cba70fc912
commit e76c00c7f4
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ void CGL33ParticleRenderer::DrawParticle(PrimitiveType type, int count, const Ve
glBufferData(GL_ARRAY_BUFFER, m_bufferCapacity, nullptr, GL_STREAM_DRAW);
glBufferSubData(GL_ARRAY_BUFFER, 0, size, vertices);
glVertexAttribPointer(0, 2, GL_FLOAT, GL_FALSE, sizeof(Vertex3D),
glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, sizeof(Vertex3D),
reinterpret_cast<void*>(offsetof(Vertex3D, position)));
glVertexAttribPointer(1, 4, GL_UNSIGNED_BYTE, GL_TRUE, sizeof(Vertex3D),