
Fixes #1396 <img width="1392" alt="Screenshot 2021-02-16 at 02 24 01" src="https://user-images.githubusercontent.com/8672791/108011774-1b991a80-7008-11eb-979e-6ebfc51fba3c.png"> Issue was that, when loading an image directly from its bytes in the binary glb file, it didn't follow the same flow as when loaded as a texture file. This PR removes the dependency to `image` from `bevy_gltf`, and load the image using `bevy_render` in all cases. I also added support for more mime types while there. <img width="1392" alt="Screenshot 2021-02-16 at 02 44 56" src="https://user-images.githubusercontent.com/8672791/108011915-674bc400-7008-11eb-83d4-ded96a38919b.png">
19 lines
436 B
Rust
19 lines
436 B
Rust
#[cfg(feature = "hdr")]
|
|
mod hdr_texture_loader;
|
|
mod image_texture_loader;
|
|
mod sampler_descriptor;
|
|
#[allow(clippy::module_inception)]
|
|
mod texture;
|
|
mod texture_descriptor;
|
|
mod texture_dimension;
|
|
|
|
pub(crate) mod image_texture_conversion;
|
|
|
|
#[cfg(feature = "hdr")]
|
|
pub use hdr_texture_loader::*;
|
|
pub use image_texture_loader::*;
|
|
pub use sampler_descriptor::*;
|
|
pub use texture::*;
|
|
pub use texture_descriptor::*;
|
|
pub use texture_dimension::*;
|