From 0409fbdd696780ee86f297283c70b63740dae8dc Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 13 Apr 2023 11:51:00 +0200 Subject: z fix attempt --- shaders/tile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaders/tile.cpp') 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 -- cgit v1.2.3