So model rendering will correctly draw models in batches (meaning that all of one kind of model will be drawn in a sequence, then all of the next kind of model will be drawn) to avoid unnecessary state changes on the GPU. Now the question is how to allow a similar batching of shaders, since two instances of the same model may not use the same shader. Similar question here
So model rendering will correctly draw models in batches (meaning that all of one kind of model will be drawn in a sequence, then all of the next kind of model will be drawn) to avoid unnecessary state changes on the GPU. Now the question is how to allow a similar batching of shaders, since two instances of the same model may not use the same shader. Similar question here