rpg-bevy-tutorial icon indicating copy to clipboard operation
rpg-bevy-tutorial copied to clipboard

why my sprite look blurry like this

Open RyanWongGithub opened this issue 3 years ago • 2 comments

image

RyanWongGithub avatar Sep 03 '22 11:09 RyanWongGithub

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.

MiSimon avatar Sep 11 '22 22:09 MiSimon

With bevy 0.9, we switch to using the ImagePlugin

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

lofiwatercat avatar Jan 03 '23 05:01 lofiwatercat