summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-07-22 18:56:26 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-07-22 21:17:41 +0200
commit391e513ab8100b4ef0ab783354640fcff2be6c36 (patch)
tree09c6d5239130caada704e0f9516a8c94ff08ac92 /editor
parent78b17ebff3fce78ba90590c4dce4c8940181b1d4 (diff)
a
Diffstat (limited to 'editor')
-rw-r--r--editor/imgui.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/editor/imgui.cpp b/editor/imgui.cpp
index 560e8f5b..399a2e69 100644
--- a/editor/imgui.cpp
+++ b/editor/imgui.cpp
@@ -235,9 +235,8 @@ void app::draw_lightmap_test()
//shader.finish_and_blend_light();
shader.finish_light_only();
shader.end_accum();
- constexpr auto img_size = 1 / Vector2(lightmap_shader::max_chunks);
- constexpr auto uv1 = ImVec2{img_size.x(), img_size.y()};
- ImGui::Image(&shader.scratch_texture(), preview_size, ImVec2{0, 0}, uv1);
+ //constexpr auto img_size = 1 / Vector2(lightmap_shader::max_chunks);
+ ImGui::Image(&shader.scratch_texture(), preview_size, {0, 0}, {1, 1});
M->bind();
}
ImGui::End();