Skip to content

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

HazelTheWitch/bevy_pixel_perfect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published