mirror of
https://github.com/bevyengine/bevy
synced 2024-11-29 16:10:19 +00:00
6a0968b2ea
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. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |