#Anisotropic filtering & Mipmaps

7 messages · Page 1 of 1 (latest)

elfin lily
#

How can I enable anisotropic filtering in bevy 0.14?

Also, will mipmaps for textures generated automatically on texture load?

#

Anisotropic filtering & Mipmaps

elfin lily
#

Did I understand right that bevy can't generate mipmaps?

lone karma
#

It should be able to generate the mipmaps but I haven't gotten it to work yet

#

I can try to find the steps when I'm home again

grizzled basin
long ice
# elfin lily How can I enable anisotropic filtering in bevy 0.14? Also, will mipmaps for tex...

To enable it you need to set the anisotropy_clamp field on the SamplerDescriptor for each image.

If you want to do it for all materials (e.g. StandardMaterial) you'd want to query mut materials: ResMut<Assets<StandardMaterial>>, and then change the anisotropy_clamp for whatever image (e.g. base_color_texture). But yea I'd recommend https://github.com/DGriffin91/bevy_mod_mipmap_generator as it does it for you.

And no, mipmaps won't be generated automatically on load.