Set max mipmapping level
This commit is contained in:
parent
bd370e1bf9
commit
2e9cdf2bd1
@ -1136,7 +1136,7 @@ impl AppData {
|
||||
.mipmap_mode(vk::SamplerMipmapMode::LINEAR)
|
||||
.mip_lod_bias(0.0)
|
||||
.min_lod(0.0)
|
||||
.max_lod(0.0);
|
||||
.max_lod(self.mip_levels as f32);
|
||||
|
||||
self.texture_sampler = device.create_sampler(&info, None)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user