diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-12 04:02:29 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-12 04:02:29 +0200 |
| commit | 060ea55805ff629e0971ef8a37592228faf2a17f (patch) | |
| tree | 6bdbab435cdfbb200bfe93f5c22b7075713b3165 /editor | |
| parent | 6143042c67f5e7adb0e64a81ebaa9c89e398a541 (diff) | |
lightmap sort of works now
Diffstat (limited to 'editor')
| -rw-r--r-- | editor/imgui.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp index 82fe42b1..c22c6ebf 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -228,8 +228,9 @@ void app::draw_lightmap_test() }; auto& shader = M->lightmap_shader(); shader.begin({0, 0}, L); + shader.add_chunk({}, e_->chunk()); shader.end(); - M->bind(); // todo + M->bind(); ImGui::Image(&shader.texture(), {1024, 1024}); } ImGui::End(); @@ -305,7 +306,9 @@ void app::kill_popups(bool hard) _pending_popup = false; _popup_target = {}; - _tested_light = 0; + + if (hard) + _tested_light = 0; if (imgui) ImGui::CloseCurrentPopup(); |
