bevy/assets/textures/fantasy_ui_borders
ickshonpe 8ac745ab10
UI texture slice texture flipping reimplementation (#15034)
# Objective

Fixes #15032

## Solution

Reimplement support for the `flip_x` and `flip_y` fields.
This doesn't flip the border geometry, I'm not really sure whether that
is desirable or not.
Also fixes a bug that was causing the side and center slices to tile
incorrectly.

### Testing

```
cargo run --example ui_texture_slice_flip_and_tile
```

## Showcase
<img width="787" alt="nearest"
src="https://github.com/user-attachments/assets/bc044bae-1748-42ba-92b5-0500c87264f6">
With tiling need to use nearest filtering to avoid bleeding between the
slices.

---------

Co-authored-by: Jan Hohenheim <jan@hohenheim.ch>
Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
2024-09-04 19:31:41 +00:00
..
border_sheet.png Slicing support for texture atlas (#12059) 2024-03-05 16:05:39 +00:00
License.txt UI Texture 9 slice (#11600) 2024-02-07 20:07:53 +00:00
numbered_slices.png UI texture slice texture flipping reimplementation (#15034) 2024-09-04 19:31:41 +00:00
panel-border-010-repeated.png Example with repeated texture (#13176) 2024-05-05 17:29:26 +00:00
panel-border-010.png UI Texture 9 slice (#11600) 2024-02-07 20:07:53 +00:00
panel-border-015.png UI Texture 9 slice (#11600) 2024-02-07 20:07:53 +00:00