From 641eabcda36c170497cb8f405f4360b6a617cfcb Mon Sep 17 00:00:00 2001 From: Peter Hebden Date: Thu, 4 Aug 2022 22:09:52 +0000 Subject: [PATCH] Add `bevy_render::texture::ImageSettings` to prelude (#5566) # Objective In Bevy 0.8, the default filter mode was changed to linear (#4465). I believe this is a sensible default, but it's also very common to want to use point filtering (e.g. for pixel art games). ## Solution I am proposing including `bevy_render::texture::ImageSettings` in the Bevy prelude so it is more ergonomic to change the filtering in such cases. --- ## Changelog ### Added - Added `bevy_render::texture::ImageSettings` to prelude. --- crates/bevy_render/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_render/src/lib.rs b/crates/bevy_render/src/lib.rs index af6d61a8ffa3e..12e0307200094 100644 --- a/crates/bevy_render/src/lib.rs +++ b/crates/bevy_render/src/lib.rs @@ -28,7 +28,7 @@ pub mod prelude { mesh::{shape, Mesh}, render_resource::Shader, spatial_bundle::SpatialBundle, - texture::Image, + texture::{Image, ImageSettings}, view::{ComputedVisibility, Msaa, Visibility, VisibilityBundle}, }; }