diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-07 10:02:05 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-09-07 10:02:05 +0200 |
| commit | 8d331c1c58b44e3ad3578be8e0ef2815287adc4b (patch) | |
| tree | bf4eea13579109f8c3f7f2379d98ebc3b6c75e22 /src | |
| parent | 100f35c5129b28c12aa776b5664a9e29f1f551bf (diff) | |
extend hack to fix ground clipping at chunk boundary
Diffstat (limited to 'src')
| -rw-r--r-- | src/chunk-render.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chunk-render.cpp b/src/chunk-render.cpp index c163fd4d..c72deca8 100644 --- a/src/chunk-render.cpp +++ b/src/chunk-render.cpp @@ -48,7 +48,7 @@ auto chunk::ensure_ground_mesh() noexcept -> ground_mesh_tuple return _ground->_ground_atlases[a] < _ground->_ground_atlases[b]; }); - float hack_offset = _coord.z == 0 ? -1 : 0; + float hack_offset = _coord.z <= 0 ? -16 : 0; std::array<std::array<vertex, 4>, TILE_COUNT> vertexes; for (auto k = 0uz; k < count; k++) |
