summaryrefslogtreecommitdiffhomepage
path: root/main
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-06-17 20:44:19 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-06-17 20:44:19 +0200
commite0ab5ebe9d367f2db8303e97b25faa70cd063855 (patch)
tree835d5f8f53b98d1f429e1411aabdd64856d6c3c3 /main
parentbed582123c54a4df098c9cdc53019e0d7038eac8 (diff)
wip
Diffstat (limited to 'main')
-rw-r--r--main/draw.cpp5
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();