diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-22 10:24:05 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-22 10:24:05 +0100 |
commit | 28fbe0fd7bd0f463b9f2325edac294f32d357afd (patch) | |
tree | 8e76ad454da59661472d2851128fec89a041f4a2 /shaders/shader.hpp | |
parent | 424701126b5613badc23dd7354b26294dc1c6c93 (diff) |
a
Diffstat (limited to 'shaders/shader.hpp')
-rw-r--r-- | shaders/shader.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shaders/shader.hpp b/shaders/shader.hpp index d66cccb0..16e5bb22 100644 --- a/shaders/shader.hpp +++ b/shaders/shader.hpp @@ -45,6 +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 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; |