diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-09 11:45:34 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-09 11:45:34 +0100 |
| commit | ff3a18b1a251a5e85057e52303efa0cdd79e8a66 (patch) | |
| tree | 44c2f3a6f69bc922d71063debd14ba669c74ca0d /editor | |
| parent | b4770eb85369e91cbf800e8192dac0d8c0c627cf (diff) | |
add floor mesh to struct chunk
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/draw.cpp | 2 | ||||
| -rw-r--r-- | editor/update.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/editor/draw.cpp b/editor/draw.cpp index ad634815..89613d37 100644 --- a/editor/draw.cpp +++ b/editor/draw.cpp @@ -9,6 +9,8 @@ namespace floormat { void app::draw_cursor() { + GL::Renderer::disable(GL::Renderer::Feature::DepthTest); + constexpr float LINE_WIDTH = 2; if (cursor.tile && !cursor.in_imgui) diff --git a/editor/update.cpp b/editor/update.cpp index ed9c2561..36a872c5 100644 --- a/editor/update.cpp +++ b/editor/update.cpp @@ -29,7 +29,8 @@ void app::maybe_initialize_chunk_(const chunk_coords& pos, chunk& c) c[{K, K }].wall_west() = { _wall2, 0 }; c[{K, K+1}].wall_north() = { _wall1, 0 }; c[{K+1, K }].wall_west() = { _wall2, 0 }; - c[{K+1, K+1}].scenery() = { _door, {rotation::N, 0} }; + //c[{K+1, K+1}].scenery() = { _door, {rotation::N, 0} }; + //c.mark_modified(); } void app::maybe_initialize_chunk([[maybe_unused]] const chunk_coords& pos, [[maybe_unused]] chunk& c) |
