Fix texture offset still using wrong dimension

This commit is contained in:
Lucas Schumacher 2024-05-13 19:12:40 -04:00
parent 54826d50a6
commit 02c0f54079

View File

@ -88,7 +88,7 @@ impl Waterfall {
} }
if let Some(uniform) = gl.get_uniform_location(self.program, "offset") { 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"); check_for_gl_errors(&gl, "update uniform");