aboutsummaryrefslogtreecommitdiff
path: root/shaders/line.vert
diff options
context:
space:
mode:
Diffstat (limited to 'shaders/line.vert')
-rw-r--r--shaders/line.vert8
1 files changed, 8 insertions, 0 deletions
diff --git a/shaders/line.vert b/shaders/line.vert
new file mode 100644
index 0000000..b41673c
--- /dev/null
+++ b/shaders/line.vert
@@ -0,0 +1,8 @@
+attribute vec3 in_pos;
+
+uniform mat4 proj;
+uniform mat4 view;
+
+void main() {
+ gl_Position = proj * view * vec4(in_pos, 1.0);
+}