Use Srgb texture format for TextAtlas

This commit is contained in:
Héctor Ramón Jiménez 2023-02-04 13:22:39 +01:00 committed by Josh Groves
parent 2af2f357c5
commit e457bca108
2 changed files with 2 additions and 3 deletions

View file

@ -45,7 +45,7 @@ impl InnerAtlas {
dimension: TextureDimension::D2,
format: match num_atlas_channels {
1 => TextureFormat::R8Unorm,
4 => TextureFormat::Rgba8Unorm,
4 => TextureFormat::Rgba8UnormSrgb,
_ => panic!("unexpected number of channels"),
},
usage: TextureUsages::TEXTURE_BINDING | TextureUsages::COPY_DST,