another fix
This commit is contained in:
parent
f50b87e674
commit
7b4ddfd278
@ -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…
x
Reference in New Issue
Block a user