bevy/crates/bevy_ui
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
..
src adjust cluster index for viewport origin (#5947) 2022-09-15 21:58:14 +00:00
Cargo.toml Bump Version after Release (#5576) 2022-08-05 02:03:05 +00:00