chips
chips

Reputation: 300

Opengl instanced batching

Is there a way of drawing an instanced buffer in sections/batches?

Currently I am shoving all of my geometry into large vbos, generating a render script that batches models by shader/textures/atlases, then drawing by using glDrawElements with a count and an offset into the indices. All good.

I am thinking of moving to instancing to reduce the amount of data that needs to be transferred to the gpu but other than sending a bunch of offsets as instanced attributes I can't see an out-of-the-box way of doing this with an opengl draw call.

Am I missing something?

Upvotes: 0

Views: 536

Answers (0)

Related Questions