diff options
Diffstat (limited to 'shaders/tile.cpp')
-rw-r--r-- | shaders/tile.cpp | 2 |
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 |