From 6c33746542f91abc300319cd057839299d17dea5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 17 Jun 2023 09:54:12 +0200 Subject: wip --- editor/imgui.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'editor') 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(); -- cgit v1.2.3