diff options
Diffstat (limited to 'shaders/shader.hpp')
| -rw-r--r-- | shaders/shader.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/shaders/shader.hpp b/shaders/shader.hpp index c50f4681..d66cccb0 100644 --- a/shaders/shader.hpp +++ b/shaders/shader.hpp @@ -40,11 +40,12 @@ struct tile_shader final : private GL::AbstractShaderProgram template<typename T, typename... Xs> decltype(auto) draw(GL::AbstractTexture& tex, T&& mesh, Xs&&... xs); static constexpr Vector2s max_screen_tiles = {8, 8}; - static constexpr float character_depth_offset = 1 + 1./64; - static constexpr float scenery_depth_offset = 1 + 1./64; + static constexpr float character_depth_offset = 1 + 2./64; + 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 z_depth_offset = 1 + 2./64; + static constexpr float wall_overlay_depth_offset = 1 + 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; |
