summaryrefslogtreecommitdiff
path: root/src/gauge.vert
diff options
context:
space:
mode:
authoraura <nw@moneybot.cc>2026-07-13 10:15:03 +0200
committeraura <nw@moneybot.cc>2026-07-13 10:15:03 +0200
commit57d172df4db1451ba3caeeb0ca485d0845a61912 (patch)
treead0be7c8bec79a1eb58b25f2a631bc4b6809e7fd /src/gauge.vert
push source
Diffstat (limited to 'src/gauge.vert')
-rw-r--r--src/gauge.vert9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gauge.vert b/src/gauge.vert
new file mode 100644
index 0000000..66179be
--- /dev/null
+++ b/src/gauge.vert
@@ -0,0 +1,9 @@
+#version 450
+layout(location = 0) in vec2 in_pos;
+layout(location = 1) in vec4 in_col;
+layout(push_constant) uniform PC { vec2 scale; } pc;
+layout(location = 0) out vec4 v_col;
+void main() {
+ gl_Position = vec4( in_pos * pc.scale - 1.0, 0.0, 1.0 );
+ v_col = in_col;
+}