summaryrefslogtreecommitdiffhomepage
path: root/shaders/tile.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-13 11:51:00 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-13 11:51:00 +0200
commit0409fbdd696780ee86f297283c70b63740dae8dc (patch)
treee839edd29f795f7a0a62ab034afc214b3ff70745 /shaders/tile.cpp
parent56e34d8d3388432d342b0c4749cfe044367df668 (diff)
z fix attempt
Diffstat (limited to 'shaders/tile.cpp')
-rw-r--r--shaders/tile.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/shaders/tile.cpp b/shaders/tile.cpp
index 803165d5..9725c974 100644
--- a/shaders/tile.cpp
+++ b/shaders/tile.cpp
@@ -75,7 +75,7 @@ void tile_shader::_draw()
float tile_shader::depth_value(const local_coords& xy, float offset) noexcept
{
- return (xy.to_index() + offset) * depth_tile_size;
+ return ((float)xy.x + (float)xy.y + offset) * depth_tile_size;
}
} // namespace floormat