diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-14 11:58:23 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-14 11:58:23 +0200 |
commit | f5c387da470ae43a2c8aff75b419e784c8bb3bc5 (patch) | |
tree | 744a80e82462849ae538b6c04e941ab6fd7d09fa /src/chunk-render.cpp | |
parent | e1ae8881918415ef13fdea7c7087d01d873ad07a (diff) |
it probably renders correctly now
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 28bdc759..8ec10610 100644 --- a/src/chunk-render.cpp +++ b/src/chunk-render.cpp @@ -40,7 +40,7 @@ auto chunk::ensure_ground_mesh() noexcept -> ground_mesh_tuple const local_coords pos{i}; const auto quad = atlas->floor_quad(Vector3(pos) * TILE_SIZE, TILE_SIZE2); const auto texcoords = atlas->texcoords_for_id(_ground_variants[i]); - const float depth = tile_shader::depth_value(local_coords{0}); + const float depth = tile_shader::depth_value(pos); auto& v = vertexes[k]; for (auto j = 0uz; j < 4; j++) v[j] = { quad[j], texcoords[j], depth }; |