bevy/assets/pixel
Nurzhan Sakén 8067e46049
Add example for pixel-perfect grid snapping in 2D (#8112)
# Objective

Provide an example of how to achieve pixel-perfect "grid snapping" in 2D
via rendering to a texture. This is a common use case in retro pixel art
game development.

## Solution

Render sprites to a canvas via a Camera, then use another (scaled up)
Camera to render the resulting canvas to the screen. This example is
based on the `3d/render_to_texture.rs` example. Furthermore, this
example demonstrates mixing retro-style graphics with high-resolution
graphics, as well as pixel-snapped rendering of a
`MaterialMesh2dBundle`.
2023-12-26 17:15:50 +00:00
..
bevy_pixel_dark.png Add example for pixel-perfect grid snapping in 2D (#8112) 2023-12-26 17:15:50 +00:00
bevy_pixel_light.png Add example for pixel-perfect grid snapping in 2D (#8112) 2023-12-26 17:15:50 +00:00