summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-12-22 10:34:42 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-12-22 10:34:42 +0100
commit1081220f8fdcfa313cfe8feacda9230af5a68469 (patch)
tree7d0e39791ec82e95300cd6eada3baff82d0014da /shaders
parent28fbe0fd7bd0f463b9f2325edac294f32d357afd (diff)
a
Diffstat (limited to 'shaders')
-rw-r--r--shaders/shader.hpp2
1 files changed, 1 insertions, 1 deletions
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;