summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-10 23:06:09 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-10 23:06:09 +0100
commita26d264a1e2ce72376dcfd301e718b56deebb3d1 (patch)
tree41ecaa0091316e925c035ae9182de086a1fb3efb /shaders
parent41808140951c9ad107ebb05fe1cee6be1dd6f5c3 (diff)
fix Z fighting issue with walls
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 5b46fcb2..cb79fe94 100644
--- a/shaders/shader.hpp
+++ b/shaders/shader.hpp
@@ -44,7 +44,7 @@ struct tile_shader final : private GL::AbstractShaderProgram
static constexpr float scenery_depth_offset = 1 + 2./64;
static constexpr float ground_depth_offset = 0;
static constexpr float wall_depth_offset = 1;
- static constexpr float wall_overlay_depth_offset = 1 + 1./64; // todo add this
+ static constexpr float wall_west_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());