/bevy_pixel_perfect

Pixel perfect post processing effect for Bevy similar to that in Astortion.

Primary LanguageRustApache License 2.0Apache-2.0

bevy_pixel_pefect

A showcase of bevy_pixel_perfect

A pixel perfect post processing effect based on Aarthificial's Astortion renderer.

Usage

  1. Use nearest neighbor filtering. (ImagePlugin::default_nearest())
  2. Add the PixelPerfectPlugin plugin to your app.
  3. Add the PixelPerfectCamera component to your camera and set the resolution field to the desired virtual resolution.
  4. Move the camera with subpixel_position instead of translation.

Check examples for full usage example.

Features

bilinear (default)

The bilinear feature enables bilinear sampling in the shader. This reduces aliasing in the final texture at the cost of minorly increasing the cost of the upscale. Do not disable nearest neighbor filtering when using this feature, the bilinear sampling is done in shader due to how the upscaling works. If you're experiencing artifacts with this feature enabled try disabling it.

bevy bevy_pixel_pefect
0.12 0.1