From e02e1ae26a3d5009d20ee404828f7a53c2f8f12a Mon Sep 17 00:00:00 2001 From: chyyran <ronny@ronnychan.ca> Date: Sun, 3 Mar 2024 02:16:45 -0500 Subject: [PATCH] rt(gl): load luts with topleft origin due to MVP changes --- librashader-runtime-gl/src/gl/gl3/lut_load.rs | 2 +- librashader-runtime-gl/src/gl/gl46/lut_load.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/librashader-runtime-gl/src/gl/gl3/lut_load.rs b/librashader-runtime-gl/src/gl/gl3/lut_load.rs index cf5e85c..d785e99 100644 --- a/librashader-runtime-gl/src/gl/gl3/lut_load.rs +++ b/librashader-runtime-gl/src/gl/gl3/lut_load.rs @@ -21,7 +21,7 @@ impl LoadLut for Gl3LutLoad { let images = textures .par_iter() - .map(|texture| Image::load(&texture.path, UVDirection::BottomLeft)) + .map(|texture| Image::load(&texture.path, UVDirection::TopLeft)) .collect::<std::result::Result<Vec<Image>, ImageError>>()?; for (index, (texture, image)) in textures.iter().zip(images).enumerate() { diff --git a/librashader-runtime-gl/src/gl/gl46/lut_load.rs b/librashader-runtime-gl/src/gl/gl46/lut_load.rs index 5b59c48..04e33cc 100644 --- a/librashader-runtime-gl/src/gl/gl46/lut_load.rs +++ b/librashader-runtime-gl/src/gl/gl46/lut_load.rs @@ -25,7 +25,7 @@ impl LoadLut for Gl46LutLoad { let images = textures .par_iter() - .map(|texture| Image::load(&texture.path, UVDirection::BottomLeft)) + .map(|texture| Image::load(&texture.path, UVDirection::TopLeft)) .collect::<std::result::Result<Vec<Image>, ImageError>>()?; for (index, (texture, image)) in textures.iter().zip(images).enumerate() {