From c9cfa478d3f11ebe3a23e6685ab617188f6972c7 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Fri, 10 Feb 2023 00:08:32 +0100 Subject: [PATCH] progressbar shader fix --- kubi/shaders/gui/progressbar.vert | 4 ++-- kubi/src/gui.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kubi/shaders/gui/progressbar.vert b/kubi/shaders/gui/progressbar.vert index 35ca9c7..9d48236 100644 --- a/kubi/shaders/gui/progressbar.vert +++ b/kubi/shaders/gui/progressbar.vert @@ -1,12 +1,12 @@ #version 150 core in vec2 position; -out vec2 uv; +out vec2 v_uv; uniform mat4 ui_view; uniform mat3 transform; void main() { - uv = position; + v_uv = position; vec2 transformed = (transform * vec3(position, 1.)).xy; gl_Position = ui_view * vec4(transformed, 0., 1.); } diff --git a/kubi/src/gui.rs b/kubi/src/gui.rs index 41069ba..8662cab 100644 --- a/kubi/src/gui.rs +++ b/kubi/src/gui.rs @@ -53,7 +53,7 @@ pub fn gui_testing( vec2(0.5, 0.25) )), ProgressbarComponent { - progress: 0.5 + progress: 0.33 }, PrimaryColor::default(), SecondaryColor::default(),