Skip to content

Commit

Permalink
fix: Disable MSAA in pixel art mode (fishfolk#433)
Browse files Browse the repository at this point in the history
Disable MSAA when in pixel art mode. It seems to add artifacts with
texture sampling. Example: fishfolk/jumpy#1014
  • Loading branch information
MaxCWhitehead authored and RockasMockas committed Sep 9, 2024
1 parent ccb2196 commit 62f9ba8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions framework_crates/bones_bevy_renderer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ impl BonesBevyRenderer {
.build();
if self.pixel_art {
plugins = plugins.set(ImagePlugin::default_nearest());
app.insert_resource(Msaa::Off);
}

app.add_plugins(plugins).add_plugins((
Expand Down

0 comments on commit 62f9ba8

Please sign in to comment.