]> git.localhorst.tv Git - blank.git/blobdiff - src/world/chunk.cpp
move block type loading details to BlockType
[blank.git] / src / world / chunk.cpp
index b275315a5a8b7b0053d4b4ecbe5c5e4f9b21ba54..1d120bb2ebe8d2475a4be2ac1bc4799755b8d25d 100644 (file)
@@ -779,6 +779,7 @@ void ChunkRenderer::Render(Viewport &viewport) {
 
        for (int i = 0; i < index.TotalChunks(); ++i) {
                if (!index[i]) continue;
+               // TODO: optimize chunk culling, shoudn't be that hard
                glm::mat4 m(index[i]->Transform(index.Base()));
                glm::mat4 mvp(chunk_prog.GetVP() * m);
                if (!CullTest(Chunk::Bounds(), mvp)) {