diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 15:59:19 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-08 15:59:19 +0200 |
commit | 3570e2f5aefdd0b5d262fe99ccd8b4a54aa79b83 (patch) | |
tree | dd6f1b9f1cc4fbd4ac74de7b6e0cd90900c75330 /shaders | |
parent | c908c0cc43211d9937340b2a0704e8c53241b035 (diff) |
fix wall z>0 clipping over z=0 scenery
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/tile.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |