mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +00:00
another fix
This commit is contained in:
parent
f50b87e674
commit
7b4ddfd278
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ void WorldRenderer::drawChunks(
|
||||||
for (auto& index : indices) {
|
for (auto& index : indices) {
|
||||||
float x = index.index % chunksWidth + chunksOffsetX - px;
|
float x = index.index % chunksWidth + chunksOffsetX - px;
|
||||||
float z = index.index / chunksWidth + chunksOffsetY - pz;
|
float z = index.index / chunksWidth + chunksOffsetY - pz;
|
||||||
index.d = (x * x + z * z) * 16;
|
index.d = (x * x + z * z) * 1024;
|
||||||
}
|
}
|
||||||
util::insertion_sort(indices.begin(), indices.end());
|
util::insertion_sort(indices.begin(), indices.end());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue