master
Marc Gilleron 2021-11-12 21:42:39 +00:00
parent c17914b2c8
commit 148d5e4116
2 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#include "../../util/profiling.h"
namespace {
// Table of indices for vertices of cube faces
// 2-----3
// | |
// | |

View File

@ -303,7 +303,7 @@ void build_regular_mesh(
// Prepare vertex reuse cache
cache.reset_reuse_cells(block_size_with_padding);
// We iterate 2x2 voxel groups, which the paper calls "cells".
// We iterate 2x2x2 voxel groups, which the paper calls "cells".
// We also reach one voxel further to compute normals, so we adjust the iterated area
const Vector3i min_pos = Vector3i(MIN_PADDING);
const Vector3i max_pos = block_size_with_padding - Vector3i(MAX_PADDING);