[SOLVED] It was an overdraw issue. I'm trying to create tilesheet rendering, but am getting very slow performance. I have a VBO which contains 5 floats: posX, posY, posZ, texco-ordX, texco-ordY. 4 times for each square(2 triangles) And an IBO to go along with this mapping out the triangles i.e { 0,3...
I'm very new to OpenGL/rendering in general and currently have my sprites able to render single sprites at a time just fine but am a little confused with how batch or atlas rendering would work. Here is how i currently render each sprite: model = glm::translate(model, glm::vec3(currentSprite.positio...