From 1081220f8fdcfa313cfe8feacda9230af5a68469 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 22 Dec 2023 10:34:42 +0100 Subject: a --- shaders/shader.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shaders/shader.hpp b/shaders/shader.hpp index 16e5bb22..dc87a2cc 100644 --- a/shaders/shader.hpp +++ b/shaders/shader.hpp @@ -45,7 +45,7 @@ struct tile_shader final : private GL::AbstractShaderProgram static constexpr float ground_depth_offset = 0; static constexpr float wall_depth_offset = 1; static constexpr float wall_overlay_depth_offset = 1 + 1./64; - static constexpr float wall_side_offset = 1./64; + static constexpr float wall_side_offset = 1 - 4./64; static constexpr float z_depth_offset = 1 + 4./64; static constexpr float depth_tile_size = 1.f/(TILE_MAX_DIM * 2 * max_screen_tiles.product()); static constexpr float foreshortening_factor = 0.578125f; -- cgit v1.2.3