diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-10 18:13:56 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-06-10 18:13:56 +0200 |
commit | 1baf69083d740f50eba0de13b366977a07dacbf3 (patch) | |
tree | e397e568d972788a8a339432709e2c53be12bd67 /editor/imgui.cpp | |
parent | 2204f113710319ae6d735e3d511dd1d75d42a07d (diff) |
wip
Diffstat (limited to 'editor/imgui.cpp')
-rw-r--r-- | editor/imgui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<const light&>(*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, }; |