diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-28 11:47:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-28 11:53:53 +0100 |
commit | aaed493a1f69740d8d52d658cc2ed4ab41d9b379 (patch) | |
tree | 1de262b6915efcb0b2afb362d82f8aa2ce3393e4 | |
parent | 4fba3b30f81ce723ac2f7756160d3a8de515c1ce (diff) |
main: remove old dead code
-rw-r--r-- | main/draw.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/main/draw.cpp b/main/draw.cpp index 5ae3431a..8d7f9ab7 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -161,21 +161,6 @@ void main_impl::draw_world() noexcept if (!c_) continue; auto& c = *c_; -#if 0 - { - std::array<chunk*, 8> ns = {}; - for (auto i = 0uz; i < 8; i++) - { - auto off = world::neighbor_offsets[i]; - auto n = chunk_coords_{int16_t(x + off.x()), int16_t(y + off.y()), z}; - ns[i] = _world.at(n); - } - if (z == 0 && draw_lights(c, ns)) - { - (void)_lightmap_shader.accum_texture(); - } - } -#endif bind(); const with_shifted_camera_offset o{_shader, ch, {minx, miny}, {maxx, maxy}}; |