From b08348a798be39de1bfbe592bedb7c8626dcc7fe Mon Sep 17 00:00:00 2001 From: Max Whitehead <35712032+MaxCWhitehead@users.noreply.github.com> Date: Wed, 7 Aug 2024 11:04:03 -0700 Subject: [PATCH] fix: Disable MSAA in pixel art mode (#433) Disable MSAA when in pixel art mode. It seems to add artifacts with texture sampling. Example: https://github.com/fishfolk/jumpy/issues/1014 --- framework_crates/bones_bevy_renderer/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/framework_crates/bones_bevy_renderer/src/lib.rs b/framework_crates/bones_bevy_renderer/src/lib.rs index 00e176b94d..a2fa39a256 100644 --- a/framework_crates/bones_bevy_renderer/src/lib.rs +++ b/framework_crates/bones_bevy_renderer/src/lib.rs @@ -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((