"Recently, I've been trying to make a batched rendering system with textures, and having failure with it. I do it by combining the vertex arrays and texture coordinate arrays, then auto-generate a element array and give that data to a VBO.
I've been trying to render textures by having a sampler array in the fragment shader, then set sampler array to [0, 1, 2, 3, 4, 5, 6, 7]. I also have the textures binded in GL_TEXTURE_0, GL_TEXTURE_1, as well as texture index for the sampler array. Even with this, the game is not working. It only renders one texture.
my code: https://github.com/gamer9-create/Dyson
(Check out the main class and the Renderer class as well as shaders)" - i fixed it btw