Skip to content

Example project showing how to implement basic AA for blocky textures.

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

DGriffin91/bevy_blocky_sampling

Repository files navigation

Bevy Blocky Sampling

Example Project showing how to implement basic AA for blocky textures.

Depends on bevy 0.8

This anti aliased sampling technique is implemented at the texture sampling stage rather than as post process. Making use of bilinear interpolation, it only samples the texture a single time.

Close-up compairson of sampling options:

compairson

Press 1 for linear sampling:

linear

Press 2 for nearest neighbor sampling:

nearest

Press 3 for antialiased blocky sampling:

antialiased

Shader ported from glsl to wgsl from https://www.shadertoy.com/view/ltfXWS

About

Example project showing how to implement basic AA for blocky textures.

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

Languages