From 69e3da6e6504c35e273a04ea01fd262c74b9539c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 5 Jun 2024 13:19:27 +0200 Subject: fix scenery z order --- main/draw.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/draw.cpp b/main/draw.cpp index bf5dfb87..d30d842f 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -152,13 +152,13 @@ void main_impl::draw_world() noexcept }, draw_bounds, z_bounds, sz); + GL::Renderer::setDepthMask(false); + draw_world_0([&](chunk& c, int16_t, int16_t, int8_t) { _anim_mesh.draw(_shader, sz, c, _clickable_scenery, _do_render_vobjs); }, draw_bounds, z_bounds, sz); - GL::Renderer::setDepthMask(false); - _shader.set_tint({1, 1, 1, 1}); GL::Renderer::setDepthMask(true); -- cgit v1.2.3