Skip to content
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

why my sprite look blurry like this #2

Open
RyanWongGithub opened this issue Sep 3, 2022 · 2 comments
Open

why my sprite look blurry like this #2

RyanWongGithub opened this issue Sep 3, 2022 · 2 comments

Comments

@RyanWongGithub
Copy link

image

@MiSimon
Copy link

MiSimon commented Sep 11, 2022

You have to insert a new default image setting as resource.

use use bevy::render::texture::ImageSettings;
//...

App::new()
    .insert_resource(ImageSettings::default_nearest())
    //...

I don't know if there is a way to define the setting for a single image instead of using the global setting.

@lofiwatercat
Copy link

With bevy 0.9, we switch to using the ImagePlugin

.add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest()))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants