aboutsummaryrefslogtreecommitdiff
path: root/mvp.vs.glsl
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2016-04-24 23:52:45 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@draxit.de>2016-04-24 23:52:45 +0200
commit2ca04fbe7985ee944f3fa6302886a252a51add0c (patch)
treeb373879928a1060e564d29d44f6e20b620b272e9 /mvp.vs.glsl
downloadpointoverdrawbench-2ca04fbe7985ee944f3fa6302886a252a51add0c.tar.gz
pointoverdrawbench-2ca04fbe7985ee944f3fa6302886a252a51add0c.tar.bz2
initial commit
Diffstat (limited to 'mvp.vs.glsl')
-rw-r--r--mvp.vs.glsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/mvp.vs.glsl b/mvp.vs.glsl
new file mode 100644
index 0000000..4c4d062
--- /dev/null
+++ b/mvp.vs.glsl
@@ -0,0 +1,12 @@
+#version 430
+
+layout(location = 0) in vec4 a_position;
+
+uniform mat4 u_modelview;
+uniform mat4 u_projection;
+
+void main()
+{
+ const mat4 mvp = u_projection * u_modelview;
+ gl_Position = mvp * a_position;
+}