From 02c0f54079078b3d3ddaa5a0485c2576b52160fa Mon Sep 17 00:00:00 2001 From: Lucas Schumacher Date: Mon, 13 May 2024 19:12:40 -0400 Subject: [PATCH] Fix texture offset still using wrong dimension --- src/app/waterfall.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/waterfall.rs b/src/app/waterfall.rs index c093176..e8f132f 100644 --- a/src/app/waterfall.rs +++ b/src/app/waterfall.rs @@ -88,7 +88,7 @@ impl Waterfall { } if let Some(uniform) = gl.get_uniform_location(self.program, "offset") { - gl.uniform_1_f32(Some(&uniform), self.offset as f32 / self.width as f32); + gl.uniform_1_f32(Some(&uniform), self.offset as f32 / self.height as f32); } check_for_gl_errors(&gl, "update uniform");