bevy/crates/bevy_ui/src
François a3ca184128 Fix clipping in UI (#6351)
# Objective

- Clipping (visible in the UI example with text scrolling) is funky 
- Fixes #6287 

## Solution

- Fix UV calculation:
  - correct order for values (issue introduced in #6000)

  - add the `y` values instead of subtracting them now that vertical order is reversed
  - take scale factor into account (bug already present before reversing the order)
- While around clipping, I changed clip to only mutate when changed

No more funkiness! 😞 

<img width="696" alt="Screenshot 2022-10-23 at 22 44 18" src="https://user-images.githubusercontent.com/8672791/197417721-30ad4150-5264-427f-ac82-e5265c1fb3a9.png">
2022-10-24 14:33:51 +00:00
..
flex Clarify bevy::ui::Node field and documentation (#5995) 2022-10-17 13:27:24 +00:00
render Fix clipping in UI (#6351) 2022-10-24 14:33:51 +00:00
widget Fixes incorrect glyph positioning for text2d (#6273) 2022-10-18 13:28:34 +00:00
entity.rs Make the default background color of NodeBundle transparent (#6211) 2022-10-09 21:03:05 +00:00
focus.rs Clarify bevy::ui::Node field and documentation (#5995) 2022-10-17 13:27:24 +00:00
geometry.rs Utility methods for Val (#6134) 2022-10-24 14:33:46 +00:00
lib.rs Change UI coordinate system to have origin at top left corner (#6000) 2022-10-11 12:51:44 +00:00
ui_node.rs Utility methods for Val (#6134) 2022-10-24 14:33:46 +00:00
update.rs Fix clipping in UI (#6351) 2022-10-24 14:33:51 +00:00