summaryrefslogtreecommitdiffhomepage
path: root/shaders/tile.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-13 00:35:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-13 00:35:28 +0200
commite1d3607fb443109f1ae49a4765b9e2c5a7998a1b (patch)
tree2316f12a22d3bab259023597045e3cc650404f15 /shaders/tile.cpp
parentd748a3c14e4f5346bc8aff6882c1d082cf3fbd22 (diff)
wip z level
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 d774ddf0..803165d5 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 (float)((xy.to_index() + (double)offset) * depth_tile_size);
+ return (xy.to_index() + offset) * depth_tile_size;
}
} // namespace floormat