summaryrefslogtreecommitdiff
path: root/src/gauge.vert
diff options
context:
space:
mode:
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;
+}