-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - Add bevy_render::texture::ImageSettings
to prelude
#5566
Conversation
I didn't mean to request a new review! Very sorry for the notification. Couldn't find a way to cancel it. |
bevy_render::texture::ImageSettings
to prelude
bors r+ |
# 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.
Pull request successfully merged into main. Build succeeded: |
bevy_render::texture::ImageSettings
to preludebevy_render::texture::ImageSettings
to prelude
# 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.
It was added to prelude in bevyengine#5566
# Objective `bevy::render::texture::ImageSettings` was added to prelude in #5566, so these `use` statements are unnecessary and the examples can be made a bit more concise. ## Solution Remove `use bevy::render::texture::ImageSettings`
# 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.
# 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.
# Objective `bevy::render::texture::ImageSettings` was added to prelude in bevyengine#5566, so these `use` statements are unnecessary and the examples can be made a bit more concise. ## Solution Remove `use bevy::render::texture::ImageSettings`
# 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.
# Objective `bevy::render::texture::ImageSettings` was added to prelude in bevyengine#5566, so these `use` statements are unnecessary and the examples can be made a bit more concise. ## Solution Remove `use bevy::render::texture::ImageSettings`
Hey, the recent changelog of 0.9 suggests that |
Yep, it's been removed. Instead you should use For example: App::new()
.add_plugins(
DefaultPlugins.set(ImagePlugin::default_nearest())
)
.run(); |
# 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.
# Objective `bevy::render::texture::ImageSettings` was added to prelude in bevyengine#5566, so these `use` statements are unnecessary and the examples can be made a bit more concise. ## Solution Remove `use bevy::render::texture::ImageSettings`
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
bevy_render::texture::ImageSettings
to prelude.