aboutsummaryrefslogtreecommitdiffstats
path: root/examples/resources/textureshader.vert
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2018-05-19 15:15:20 +0100
committerYann Herklotz <ymherklotz@gmail.com>2018-05-19 15:15:20 +0100
commita8de6cb5593e3d6347393eb4c144c9cc22a470d8 (patch)
treec92063014bb76356acd09a2231e81aa084c49266 /examples/resources/textureshader.vert
parent6985227db75f6adfeba880926e6629bf17b00ee8 (diff)
downloadYAGE-a8de6cb5593e3d6347393eb4c144c9cc22a470d8.tar.gz
YAGE-a8de6cb5593e3d6347393eb4c144c9cc22a470d8.zip
Moving resources and generalising examples
Diffstat (limited to 'examples/resources/textureshader.vert')
-rw-r--r--examples/resources/textureshader.vert20
1 files changed, 0 insertions, 20 deletions
diff --git a/examples/resources/textureshader.vert b/examples/resources/textureshader.vert
deleted file mode 100644
index 447c68d4..00000000
--- a/examples/resources/textureshader.vert
+++ /dev/null
@@ -1,20 +0,0 @@
-#version 330
-
-layout(location = 0) in vec2 vertex_position;
-layout(location = 1) in vec4 vertex_colour;
-layout(location = 2) in vec2 vertex_uv;
-
-out vec2 fragment_position;
-out vec4 fragment_colour;
-out vec2 fragment_uv;
-
-uniform mat4 P;
-
-void main()
-{
- gl_Position = vec4((P*vec4(vertex_position, 0.f, 1.f)).xy, 0.f, 1.f);
-
- fragment_position = vertex_position;
- fragment_colour = vertex_colour;
- fragment_uv = vec2(vertex_uv.x, 1-vertex_uv.y);
-}