Respect mipmap_filter when create ImageDescriptor with linear()/nearest() (#6349)
Respect mipmap_filter when create ImageDescriptor with linear()/nearest() # Objective Fixes #6348 ## Migration Guide This PR changes default `ImageSettings` and may lead to unexpected behaviour for existing projects with mipmapped textures. Users should provide custom `ImageSettings` resource with `mipmap_filter=FilterMode::Nearest` if they want to keep old behaviour. Co-authored-by: Yakov Borevich <j.borevich@gmail.com>
This commit is contained in:
parent
aa742395d3
commit
157f2c1584
@ -144,6 +144,7 @@ impl ImageSampler {
|
||||
wgpu::SamplerDescriptor {
|
||||
mag_filter: wgpu::FilterMode::Linear,
|
||||
min_filter: wgpu::FilterMode::Linear,
|
||||
mipmap_filter: wgpu::FilterMode::Linear,
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
@ -154,6 +155,7 @@ impl ImageSampler {
|
||||
wgpu::SamplerDescriptor {
|
||||
mag_filter: wgpu::FilterMode::Nearest,
|
||||
min_filter: wgpu::FilterMode::Nearest,
|
||||
mipmap_filter: wgpu::FilterMode::Nearest,
|
||||
..Default::default()
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user