mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
mip-mapping related fixes
This commit is contained in:
parent
7ddf3f7537
commit
d9277e1b31
4 changed files with 34 additions and 15 deletions
|
|
@ -197,7 +197,7 @@ void ChunksRenderer::drawChunks(
|
|||
|
||||
// TODO: minimize draw calls number
|
||||
for (int i = indices.size()-1; i >= 0; i--) {
|
||||
auto chunk = chunks.getChunks()[indices[i].index];
|
||||
auto& chunk = chunks.getChunks()[indices[i].index];
|
||||
auto mesh = retrieveChunk(indices[i].index, camera, shader, culling);
|
||||
|
||||
if (mesh) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue