summaryrefslogtreecommitdiffhomepage
path: root/shaders/tile.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-12 00:08:56 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-12 00:08:56 +0200
commit903e1644fce5652a621803a6eb3617d605d22434 (patch)
treece088b04f92ffc8bdb5e6c1d31e3981e20a5b2bb /shaders/tile.cpp
parent993d828c3c2cdab6174e460c39a605dbd31d192c (diff)
wip
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 8d859ff3..d5f6b7d3 100644
--- a/shaders/tile.cpp
+++ b/shaders/tile.cpp
@@ -74,7 +74,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 depth_tile_size + (xy.to_index() + offset)*depth_tile_size;
}
} // namespace floormat