diff options
Diffstat (limited to 'main')
-rw-r--r-- | main/draw.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |