bevy_smooth_pixel_camera
A bevy plugin that adds a simple smooth pixel camera.
The smoothing is based on this video from aarthificial which explains how it works pretty nicely: https://youtu.be/jguyR4yJb1M
This method allows for smooth camera movement while retaining the pixel perfection of low resolution rendering.
Usage
-
Add the
bevy_smooth_pixel_camera
crate to your project. -
Add the
PixelCameraPlugin
and set theImagePlugin
todefault_nearest
.use *; use *; new.add_plugins.run;
-
Add a pixel pefect camera to your scene.
use *; use *;
-
That should be it! Make sure you move your camera via the
PixelCamera.subpixel_pos
property instead of theTransform
component.
Bevy Compatibility
bevy | bevy_smooth_pixel_camera |
---|---|
main | main |
0.13.* / latest | 0.3.0 / latest |
0.12.* | 0.1.0 - 0.2.1 |