diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2016-04-24 23:52:45 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2016-04-24 23:52:45 +0200 |
commit | 2ca04fbe7985ee944f3fa6302886a252a51add0c (patch) | |
tree | b373879928a1060e564d29d44f6e20b620b272e9 /mvp.vs.glsl | |
download | pointoverdrawbench-2ca04fbe7985ee944f3fa6302886a252a51add0c.tar.gz pointoverdrawbench-2ca04fbe7985ee944f3fa6302886a252a51add0c.tar.bz2 |
initial commit
Diffstat (limited to 'mvp.vs.glsl')
-rw-r--r-- | mvp.vs.glsl | 12 |
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; +} |