From e46dd0f45d1cab35c7441d72f5dcac83720cc539 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 25 Nov 2022 19:37:06 +0100 Subject: add scenery horizontal mirroring --- main/clickable.hpp | 1 + main/draw.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'main') diff --git a/main/clickable.hpp b/main/clickable.hpp index efc1a7fa..3eee243f 100644 --- a/main/clickable.hpp +++ b/main/clickable.hpp @@ -15,6 +15,7 @@ struct clickable final { float depth = 0; chunk_coords chunk; local_coords pos; + bool mirrored = false; }; } // namespace floormat diff --git a/main/draw.cpp b/main/draw.cpp index aa1b6f2e..0b797449 100644 --- a/main/draw.cpp +++ b/main/draw.cpp @@ -122,7 +122,8 @@ void main_impl::draw_anim() noexcept clickable item = { *atlas, s, { f.offset, f.offset + f.size }, { offset, offset + f.size }, - atlas->bitmask(), tile_shader::depth_value(xy, 0.25f), pos, xy + atlas->bitmask(), tile_shader::depth_value(xy, 0.25f), pos, xy, + !g.mirror_from.isEmpty(), }; _clickable_scenery.push_back(item); } -- cgit v1.2.3