From 3570e2f5aefdd0b5d262fe99ccd8b4a54aa79b83 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Apr 2023 15:59:19 +0200 Subject: fix wall z>0 clipping over z=0 scenery --- shaders/tile.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shaders') diff --git a/shaders/tile.hpp b/shaders/tile.hpp index 5c3d7a13..4bf78d09 100644 --- a/shaders/tile.hpp +++ b/shaders/tile.hpp @@ -38,7 +38,7 @@ struct tile_shader : GL::AbstractShaderProgram decltype(auto) draw(T&& mesh, Xs&&... xs); static constexpr float depth_tile_size = 1.f/(256 * TILE_COUNT); - static constexpr float scenery_depth_offset = .25f, character_depth_offset = .5f; + static constexpr float wall_depth_offset = .125f, scenery_depth_offset = .25f, character_depth_offset = .5f; private: void _draw(); -- cgit v1.2.3