bevy/crates/bevy_render/src/camera
Matthias Schiffer 5256561b7a OrthographicProjection: place origin at integer pixel with WindowSize scaling mode (#4085)
# Objective

One way to avoid texture atlas bleeding is to ensure that every vertex is
placed at an integer pixel coordinate. This is a particularly appealing
solution for regular structures like tile maps.

Doing so is currently harder than necessary when the WindowSize scaling
mode and Center origin are used: For odd window width or height, the
origin of the coordinate system is placed in the middle of a pixel at
some .5 offset.

## Solution

Avoid this issue by rounding the half width and height values.
2022-05-30 15:14:12 +00:00
..
bundle.rs Fixing confusing near and far fields in Camera (#4457) 2022-05-16 16:37:33 +00:00
camera.rs Fixing confusing near and far fields in Camera (#4457) 2022-05-16 16:37:33 +00:00
mod.rs Converted exclusive systems to parallel systems wherever possible (#2774) 2022-04-25 14:32:56 +00:00
projection.rs OrthographicProjection: place origin at integer pixel with WindowSize scaling mode (#4085) 2022-05-30 15:14:12 +00:00