Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert grayscale images to rgb (#1524)
Fixes #1518 Issue was that images loaded as [`ImageLumaA8`](https://docs.rs/image/0.23.13/image/enum.DynamicImage.html#variant.ImageLumaA8) (grayscale with alpha channel) from `image` were considered as [`Rg8Unorm`](https://docs.rs/wgpu/0.7.0/wgpu/enum.TextureFormat.html#variant.Rg8Unorm) (red green channels) from `wgpu`. Same for `ImageLuma8` (grayscale) that was converted to `R8Unorm` (only red channel). As `wgpu` doesn't seem to have grayscale texture formats, I converted the grayscale textures to rgba.
- Loading branch information