From e0ab5ebe9d367f2db8303e97b25faa70cd063855 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 17 Jun 2023 20:44:19 +0200 Subject: wip --- main/draw.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'main') diff --git a/main/draw.cpp b/main/draw.cpp index 67e92e91..2c766d31 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -197,7 +197,10 @@ void main_impl::draw_world() noexcept auto n = chunk_coords_{int16_t(x + off.x()), int16_t(y + off.y()), z}; ns[i] = _world.at(n); } - draw_lights(c, ns); + if (z == 0 && draw_lights(c, ns)) + { + (void)_lightmap_shader.accum_texture(); + } } bind(); -- cgit v1.2.3