bevy/crates/bevy_ui/src
robtfm 503c2a9677 adjust cluster index for viewport origin (#5947)
# Objective

fixes #5946

## Solution

adjust cluster index calculation for viewport origin.

from reading point 2 of the rasterization algorithm description in https://gpuweb.github.io/gpuweb/#rasterization, it looks like framebuffer space (and so @bulitin(position)) is not meant to be adjusted for viewport origin, so we need to subtract that to get the right cluster index.

- add viewport origin to rust `ExtractedView` and wgsl `View` structs
- subtract from frag coord for cluster index calculation
2022-09-15 21:58:14 +00:00
..
flex Clean up taffy nodes when UI node entities are removed (#5886) 2022-09-05 21:50:31 +00:00
render adjust cluster index for viewport origin (#5947) 2022-09-15 21:58:14 +00:00
widget make TextLayoutInfo a Component (#4460) 2022-09-06 20:03:40 +00:00
entity.rs Improve ergonomics and reduce boilerplate around creating text elements. (#5343) 2022-07-20 14:14:29 +00:00
focus.rs bevy_reflect: Update enum derives (#5473) 2022-08-02 22:40:29 +00:00
geometry.rs Add AUTO and UNDEFINED const constructors for Size (#5761) 2022-08-22 23:08:08 +00:00
lib.rs Add UI scaling (#5814) 2022-08-29 23:35:53 +00:00
ui_node.rs Move sprite::Rect into bevy_math (#5686) 2022-09-02 12:35:23 +00:00
update.rs Remove last uses of string-labels (#5420) 2022-09-03 18:06:41 +00:00