summaryrefslogtreecommitdiffhomepage
path: root/shaders
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-12-08 08:13:37 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-12-08 08:29:12 +0100
commitab31f0ed81301c23d6847f3ca1513d4b90275de7 (patch)
tree735d63bd525eccabc43ebc75e804469e898950af /shaders
parentb26ddfcee60de0951f0feaf4ae4e12551853ee21 (diff)
draw, main, src/chunk: batch scenery writes
Diffstat (limited to 'shaders')
-rw-r--r--shaders/tile.hpp1
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();