diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-12 15:53:09 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-12 16:28:43 +0200 |
commit | 506f87c554153eb0bbc3bc9e4fb0f26792f8bfca (patch) | |
tree | 0b9af737ab98b44b0e59a2b6fb4d2d94d01f460c /src/chunk-render.cpp | |
parent | 903e1644fce5652a621803a6eb3617d605d22434 (diff) |
depth buffer fixes
Diffstat (limited to 'src/chunk-render.cpp')
-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 802cb11a..28bdc759 100644 --- a/src/chunk-render.cpp +++ b/src/chunk-render.cpp @@ -71,7 +71,7 @@ GL::Mesh chunk::make_wall_mesh(size_t count) const local_coords pos{i / 2u}; const auto center = Vector3(pos) * TILE_SIZE; const auto quad = i & 1 ? atlas->wall_quad_W(center, TILE_SIZE) : atlas->wall_quad_N(center, TILE_SIZE); - const float depth = tile_shader::depth_value(pos); + const float depth = tile_shader::depth_value(pos, tile_shader::wall_depth_offset); const auto texcoords = atlas->texcoords_for_id(variant); auto& v = vertexes[k]; for (auto j = 0uz; j < 4; j++) |