bevy/crates/bevy_render
Aevyrie cbf032419d Refactor Camera methods and add viewport rect (#4948)
While working on a refactor of `bevy_mod_picking` to include viewport-awareness, I found myself writing these functions to test if a cursor coordinate was inside the camera's rendered area.

# Objective

- Simplify conversion from physical to logical pixels
- Add methods that returns the dimensions of the viewport as a min-max rect

---

## Changelog

- Added `Camera::to_logical`
- Added `Camera::physical_viewport_rect`
- Added `Camera::logical_viewport_rect`
2022-06-07 15:23:45 +00:00
..
macros ExtractResourcePlugin (#3745) 2022-05-30 18:36:03 +00:00
src Refactor Camera methods and add viewport rect (#4948) 2022-06-07 15:23:45 +00:00
Cargo.toml Generate vertex tangents using mikktspace (#3872) 2022-05-31 22:53:54 +00:00