diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-25 19:37:06 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-25 19:37:06 +0100 |
| commit | e46dd0f45d1cab35c7441d72f5dcac83720cc539 (patch) | |
| tree | 1611ed041680e6dcccb115cbc7c99e098b809d33 /main | |
| parent | 1831d5d1eab5c9a607270a8a9b72a2ac1e6ce62a (diff) | |
add scenery horizontal mirroring
Diffstat (limited to 'main')
| -rw-r--r-- | main/clickable.hpp | 1 | ||||
| -rw-r--r-- | main/draw.cpp | 3 |
2 files changed, 3 insertions, 1 deletions
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<anim_atlas, scenery> 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); } |
