X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld%2Fchunk.cpp;h=1d120bb2ebe8d2475a4be2ac1bc4799755b8d25d;hb=73d4dd2d78eda1e2f8889d1913a97a60cec86876;hp=b275315a5a8b7b0053d4b4ecbe5c5e4f9b21ba54;hpb=f5de855fbd4bf5b0df1cad950cbe9069e41369ca;p=blank.git diff --git a/src/world/chunk.cpp b/src/world/chunk.cpp index b275315..1d120bb 100644 --- a/src/world/chunk.cpp +++ b/src/world/chunk.cpp @@ -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)) {