Skip to content

Commit

Permalink
Add bevy_render::texture::ImageSettings to prelude (bevyengine#5566)
Browse files Browse the repository at this point in the history
# Objective

In Bevy 0.8, the default filter mode was changed to linear (bevyengine#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.
  • Loading branch information
Piturnah authored and maccesch committed Aug 5, 2022
1 parent 02b0915 commit 2ab7d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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},
};
}
Expand Down

0 comments on commit 2ab7d85

Please sign in to comment.