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 /draw | |
parent | e1ae8881918415ef13fdea7c7087d01d873ad07a (diff) |
it probably renders correctly now
Diffstat (limited to 'draw')
-rw-r--r-- | draw/anim.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp index b24dffa7..8ca03b87 100644 --- a/draw/anim.cpp +++ b/draw/anim.cpp @@ -89,8 +89,7 @@ void anim_mesh::draw(tile_shader& shader, const Vector2i& win_size, chunk& c, st else { const auto depth0 = e.depth_offset(); - const auto depth1 = depth0[1]*TILE_MAX_DIM + depth0[0]; - const auto depth = tile_shader::depth_value(e.coord.local(), depth1); + const auto depth = tile_shader::depth_value(e.coord.local(), depth0); draw(shader, atlas, e.r, e.frame, e.coord.local(), e.offset, depth); } } |