Modification for the textures beginner tutorial.
ThePuzzledDev opened this issue · 1 comments
ThePuzzledDev commented
I was reading the tutorial, and was just wondering why you modify the entire texture coords instead of calling img.flipv()
. The code would look something like this:
pub fn from_bytes(
device: &wgpu::Device,
queue: &wgpu::Queue,
bytes: &[u8],
label: &str,
) -> Result<Self, ImageError> {
let img = image::load_from_memory(bytes)?.flipv();
Self::from_image(device, queue, &img, Some(label))
}
It seems a lot simpler than modifying the coordinate system.