diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-17 09:54:12 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-17 10:02:17 +0200 |
commit | 6c33746542f91abc300319cd057839299d17dea5 (patch) | |
tree | a1109100959c500e812d58905d8abc5882d94320 /editor | |
parent | 0c9383d5944a53b9b6fcc60fc56450a5418f0963 (diff) |
wip
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 d8377033..b8ba4a57 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -227,12 +227,15 @@ void app::draw_lightmap_test() .falloff = li.falloff, }; auto& shader = M->lightmap_shader(); + shader.bind(); shader.begin_accum(); shader.begin_light({ 0, 0 }, L); shader.add_chunk({}, e_->chunk()); - shader.finish_light_only(); - ImGui::Image(&shader.scratch_texture(), {1024, 1024}); + shader.finish_and_blend_light(); + //shader.finish_light_only(); shader.end_accum(); + //ImGui::Image(&shader.scratch_texture(), {1024, 1024}); + ImGui::Image(&shader.accum_texture(), {1024, 1024}); M->bind(); } ImGui::End(); |