bevy-aabb-instancing

Render millions of AABBs every frame with an instancing renderer.

Example
Torus

Plugins

Two render plugins are provided.

The [InstancingRenderPlugin] does what you might call "canonical" mesh instancing. It does a single instanced draw call per [Cuboids] entity by "pushing" vertices through the shader pipeline. Current limitation: You must spawn your entities with a [CuboidInstancesBundle] for this plugin to work.

The [VertexPullingRenderPlugin] uses the "vertex pulling" technique, where rather than pushing vertex attributes through the shader pipeline, you only push an index buffer, and you "pull" your instance data from a storage buffer by decoding the vertex_index input.