diff options
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 7e73974b..0f7100e0 100644 --- a/shaders/shader.hpp +++ b/shaders/shader.hpp @@ -37,6 +37,7 @@ struct tile_shader final : GL::AbstractShaderProgram 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 ground_depth_offset = 0; // todo scenery cut off at chunk boundary static constexpr float wall_depth_offset = 1; static constexpr float z_depth_offset = 1 + 2./64; static constexpr float depth_tile_size = 1/(double)(TILE_MAX_DIM * 2 * max_screen_tiles.product()); |