seanerice / UnityVoxelEngine

I made this for fun. Basically a Minecraft clone.
1 stars 0 forks source link

Implement bfs rendering system. #10

Open seanerice opened 6 years ago

seanerice commented 6 years ago

The bfs rendering system will allow terrain to render much faster as only visible geometry will be loaded.

The bfs graph is made up of voxel nodes -- each voxel stores references to its neighbors. Each RenderChunk is responsible for local bfs search, also stores references to its neighbors. Cannot call RenderChunk.RenderBfs() unless neighbors are initialized.

seanerice commented 6 years ago

18cacdf2aa34667422b12ebce412bf7c453df16a

seanerice commented 6 years ago

01d0e05c0ad8f746203eabdd65c9747ad76eb85b

seanerice commented 6 years ago

cf7aff7c376cfa92f7ff91c1d667f74c73d81078