2
0
Fork 0
mirror of https://github.com/bevyengine/bevy synced 2025-01-02 16:28:59 +00:00
Commit graph

2 commits

Author SHA1 Message Date
Nurzhan Sakén
8067e46049
Add example for pixel-perfect grid snapping in 2D ()
# 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
Yyee
dc09ee36e2 Add pixelated Bevy to assets and an example ()
# Objective
Fixes  

## Solution
Added pixelated Bevy to assets folder and used in a `pixel_perfect` example.
2022-11-14 22:15:46 +00:00