bevy/crates/bevy_ui/src/render
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
..
mod.rs Fix clipping in UI (#6351) 2022-10-24 14:33:51 +00:00
pipeline.rs get proper texture format after the renderer is initialized, fix #3897 (#5413) 2022-10-10 16:10:05 +00:00
render_pass.rs update wgpu to 0.13 (#5168) 2022-07-14 21:17:16 +00:00
ui.wgsl adjust cluster index for viewport origin (#5947) 2022-09-15 21:58:14 +00:00