bevy/crates/bevy_sprite/src/render
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
..
mod.rs Move sprite::Rect into bevy_math (#5686) 2022-09-02 12:35:23 +00:00
sprite.wgsl adjust cluster index for viewport origin (#5947) 2022-09-15 21:58:14 +00:00