From a064d571acfa44f86e1259dd505468a11209d7ef Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Wed, 22 Nov 2023 20:27:08 +0100 Subject: [PATCH] remove legacy ui shaders --- kubi/shaders/gui/progressbar.frag | 17 ----------------- kubi/shaders/gui/progressbar.vert | 12 ------------ 2 files changed, 29 deletions(-) delete mode 100644 kubi/shaders/gui/progressbar.frag delete mode 100644 kubi/shaders/gui/progressbar.vert diff --git a/kubi/shaders/gui/progressbar.frag b/kubi/shaders/gui/progressbar.frag deleted file mode 100644 index e598692..0000000 --- a/kubi/shaders/gui/progressbar.frag +++ /dev/null @@ -1,17 +0,0 @@ -#version 300 es - -precision highp float; - -in vec2 v_uv; -out vec4 out_color; -uniform float progress; -uniform vec4 color; -uniform vec4 bg_color; - -void main() { - if (v_uv.x <= progress) { - out_color = color; - } else { - out_color = bg_color; - } -} diff --git a/kubi/shaders/gui/progressbar.vert b/kubi/shaders/gui/progressbar.vert deleted file mode 100644 index 2b43f0c..0000000 --- a/kubi/shaders/gui/progressbar.vert +++ /dev/null @@ -1,12 +0,0 @@ -#version 300 es - -in vec2 position; -out vec2 v_uv; -uniform mat4 ui_view; -uniform mat3 transform; - -void main() { - v_uv = position; - vec2 transformed = (transform * vec3(position, 1.)).xy; - gl_Position = ui_view * vec4(transformed, 0., 1.); -}