diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2016-04-24 23:33:05 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@draxit.de> | 2016-04-24 23:33:05 +0200 |
commit | a00fb682a7e3552ab4f5ee0a161d0e21d17d6a26 (patch) | |
tree | 4c25244223bde246c97cce0335da0dad4e353959 /samples/OpenGL/compute_shader/mvp.vs.glsl | |
parent | 1e387fc8eee4925616967edd26de0ee416dbce3f (diff) | |
download | codesamples-a00fb682a7e3552ab4f5ee0a161d0e21d17d6a26.tar.gz codesamples-a00fb682a7e3552ab4f5ee0a161d0e21d17d6a26.tar.bz2 |
computeshader
Diffstat (limited to 'samples/OpenGL/compute_shader/mvp.vs.glsl')
-rw-r--r-- | samples/OpenGL/compute_shader/mvp.vs.glsl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/samples/OpenGL/compute_shader/mvp.vs.glsl b/samples/OpenGL/compute_shader/mvp.vs.glsl new file mode 100644 index 0000000..4c4d062 --- /dev/null +++ b/samples/OpenGL/compute_shader/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; +} |