diff options
author | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-24 21:04:38 +0000 |
---|---|---|
committer | Yann Herklotz <ymherklotz@gmail.com> | 2017-12-24 21:04:38 +0000 |
commit | 16915d86d4b866c1fcce7523b0d34e8343ff52fc (patch) | |
tree | fdc07bff71840f7336ed5d2e751155635e8ff96a /examples/simplegame/textureshader.vert | |
parent | ddd26ed83d3ac0335562f762ced273a1d62bd959 (diff) | |
download | YAGE-16915d86d4b866c1fcce7523b0d34e8343ff52fc.tar.gz YAGE-16915d86d4b866c1fcce7523b0d34e8343ff52fc.zip |
[Code] Simple game example furthered
Diffstat (limited to 'examples/simplegame/textureshader.vert')
-rw-r--r-- | examples/simplegame/textureshader.vert | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/examples/simplegame/textureshader.vert b/examples/simplegame/textureshader.vert deleted file mode 100644 index 3277d8b0..00000000 --- a/examples/simplegame/textureshader.vert +++ /dev/null @@ -1,23 +0,0 @@ -#version 450 - -layout(location = 0) in vec2 vertex_position; -layout(location = 1) in vec4 vertex_colour; -layout(location = 2) in vec2 vertex_uv; - -layout(location = 0) out vec2 fragment_position; -layout(location = 1) out vec4 fragment_colour; -layout(location = 2) out vec2 fragment_uv; - -uniform mat4 P; - -void main() -{ - gl_Position.xy = (P*vec4(vertex_position, 0.0, 1.0)).xy; - gl_Position.z = 0.0; - gl_Position.w = 1.0; - - fragment_position = vertex_position; - fragment_colour = vertex_colour; - fragment_uv = vec2(vertex_uv.x, 1-vertex_uv.y); - -} |