summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-12 18:58:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-12 19:08:03 +0200
commit38efeacfd21be1c44d51b18fe9a11b0624a77cda (patch)
treead6b8632d302836e968db0115a3357694c948d5c /shaders
parentee38547c4f22ed48572a605ca71f26bd374a90ba (diff)
aaaa
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/shaders/tile.hpp b/shaders/tile.hpp
index 8415d836..f1e14c9e 100644
--- a/shaders/tile.hpp
+++ b/shaders/tile.hpp
@@ -37,9 +37,8 @@ struct tile_shader : GL::AbstractShaderProgram
template<typename T, typename... Xs>
decltype(auto) draw(T&& mesh, Xs&&... xs);
- static constexpr double depth_tile_size = 1/(double)(TILE_COUNT * 16 * 16);
- static constexpr double depth_chunk_size = 1/(double)(16 * 16);
- static constexpr float scenery_depth_offset = 0.5f, character_depth_offset = 0.5f, wall_depth_offset = 0.25f;
+ static constexpr float depth_tile_size = 1/(double)(TILE_COUNT * 16 * 16);
+ static constexpr float scenery_depth_offset = 0.25f, character_depth_offset = 0.25f, wall_depth_offset = 0.125f;
private:
void _draw();