diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-08 08:13:37 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-12-08 08:29:12 +0100 |
commit | ab31f0ed81301c23d6847f3ca1513d4b90275de7 (patch) | |
tree | 735d63bd525eccabc43ebc75e804469e898950af /shaders | |
parent | b26ddfcee60de0951f0feaf4ae4e12551853ee21 (diff) |
draw, main, src/chunk: batch scenery writes
Diffstat (limited to 'shaders')
-rw-r--r-- | shaders/tile.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/shaders/tile.hpp b/shaders/tile.hpp index d6eb7cca..73dc019d 100644 --- a/shaders/tile.hpp +++ b/shaders/tile.hpp @@ -38,6 +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; private: void _draw(); |