mirror of
https://github.com/Relintai/voxelman.git
synced 2024-11-14 10:17:20 +01:00
Fixed indexing in the blocky voxel mesher.
This commit is contained in:
parent
69cc6e0b77
commit
f6ed4505e7
@ -63,9 +63,9 @@ void VoxelMesherBlocky::_add_chunk(Ref<VoxelChunk> p_chunk) {
|
||||
channel_rao = chunk->get_channel(VoxelChunkDefault::DEFAULT_CHANNEL_RANDOM_AO);
|
||||
}
|
||||
|
||||
for (int y = chunk->get_margin_start(); y < y_size; ++y) {
|
||||
for (int z = chunk->get_margin_start(); z < z_size; ++z) {
|
||||
for (int x = chunk->get_margin_start(); x < x_size; ++x) {
|
||||
for (int y = chunk->get_margin_start(); y < y_size + chunk->get_margin_start(); ++y) {
|
||||
for (int z = chunk->get_margin_start(); z < z_size + chunk->get_margin_start(); ++z) {
|
||||
for (int x = chunk->get_margin_start(); x < x_size + chunk->get_margin_start(); ++x) {
|
||||
|
||||
int index = chunk->get_data_index(x, y, z);
|
||||
int indexxp = chunk->get_data_index(x + 1, y, z);
|
||||
|
Loading…
Reference in New Issue
Block a user