diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-10 13:20:04 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-10 13:20:04 +0200 |
| commit | 2204f113710319ae6d735e3d511dd1d75d42a07d (patch) | |
| tree | d21bb92cddf4c511239a773efc54f9aa94935b2b /src/chunk-render.cpp | |
| parent | 587d492a03275e95d518850d2e44949b73e1980e (diff) | |
wip
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 87f44e79..38d35030 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(pos); + const float depth = tile_shader::depth_value(pos, tile_shader::ground_depth_offset); auto& v = vertexes[k]; for (auto j = 0uz; j < 4; j++) v[j] = { quad[j], texcoords[j], depth }; |
