diff options
Diffstat (limited to 'shaders/quad.vert')
-rw-r--r-- | shaders/quad.vert | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shaders/quad.vert b/shaders/quad.vert new file mode 100644 index 0000000..ef1834c --- /dev/null +++ b/shaders/quad.vert | |||
@@ -0,0 +1,9 @@ | |||
1 | layout (location = 0) in vec2 Position; // Assuming Position in [-1,1]. | ||
2 | |||
3 | out vec2 Texcoord; | ||
4 | |||
5 | void main() | ||
6 | { | ||
7 | Texcoord = Position * 0.5 + 0.5; | ||
8 | gl_Position = vec4(Position, 0.0, 1.0); | ||
9 | } | ||