Back

Voxel Renderer

This was preparatory work completed ahead of a project that needed to simultaneously render millions of voxels. Rendering millions of cubes is of course too slow, and instancing helped but only up to several tens of thousands.

Instead, custom geometry was created which was grouped by voxel type, eliminating all internal faces. Voxel types were to be represented by simple colors so vertex colors were added depending on the voxel type.

Source code available here.