Hello,
I am creating an OpenGL Renderer class, and I am trying to figure a way to optimize things.
In my scene, there are objects sharing same mesh, objects sharing same shader, objects sharing both and objects sharing textures etc ...
For objects sharing mesh and shader I could use instanced rendering.
But what about the other objects, how do I sort them ? I sort them by buffer, by shader or by texture ?
thanks