From 1baf69083d740f50eba0de13b366977a07dacbf3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 10 Jun 2023 18:13:56 +0200 Subject: wip --- editor/imgui.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'editor') diff --git a/editor/imgui.cpp b/editor/imgui.cpp index b953a247..c48dbed1 100644 --- a/editor/imgui.cpp +++ b/editor/imgui.cpp @@ -218,12 +218,12 @@ void app::draw_lightmap_test() if (e_ && ImGui::Begin("Lightmap", &is_open, flags)) { - constexpr auto chunk_size = TILE_SIZE2.sum()/2; + constexpr auto tile_size = TILE_SIZE2.sum()/2; fm_assert(e_->type() == entity_type::light); const auto& li = static_cast(*e_); light_s L { .center = Vector2(li.coord.local()) * TILE_SIZE2 + Vector2(li.offset), - .dist = li.max_distance * chunk_size, + .dist = li.max_distance, .color = li.color, .falloff = li.falloff, }; -- cgit v1.2.3