From f5c387da470ae43a2c8aff75b419e784c8bb3bc5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 14 Apr 2023 11:58:23 +0200 Subject: it probably renders correctly now --- shaders/tile.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shaders/tile.hpp') diff --git a/shaders/tile.hpp b/shaders/tile.hpp index 47ec2f35..19d2d552 100644 --- a/shaders/tile.hpp +++ b/shaders/tile.hpp @@ -37,9 +37,9 @@ struct tile_shader : GL::AbstractShaderProgram template decltype(auto) draw(T&& mesh, Xs&&... xs); - static constexpr Vector2s max_screen_tiles{32, 32}; + static constexpr Vector2s max_screen_tiles{8, 8}; static constexpr float depth_tile_size = 1/(double)(TILE_MAX_DIM * 2 * max_screen_tiles.product()); - static constexpr float scenery_depth_offset = 0.25f, character_depth_offset = 0.25f, wall_depth_offset = 0; + static const float scenery_depth_offset, wall_depth_offset, z_depth_offset; private: void _draw(); -- cgit v1.2.3