aboutsummaryrefslogtreecommitdiff
path: root/shaders/line.vert
diff options
context:
space:
mode:
authorccolin2021-01-03 19:55:04 +0100
committerccolin2021-01-03 19:55:04 +0100
commit5326f294ceb95f1b535d145b5fdbdc221f560d53 (patch)
treea5d9dee2ebfa6413aedd764e901f3df994888614 /shaders/line.vert
parentec4017bb0ff221c5c3e192a165c8d60a54f3bedc (diff)
add option to draw trajectories
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);
+}