aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/shaders/tex.vert
diff options
context:
space:
mode:
Diffstat (limited to 'render/gles2/shaders/tex.vert')
-rw-r--r--render/gles2/shaders/tex.vert9
1 files changed, 9 insertions, 0 deletions
diff --git a/render/gles2/shaders/tex.vert b/render/gles2/shaders/tex.vert
new file mode 100644
index 00000000..9cebb458
--- /dev/null
+++ b/render/gles2/shaders/tex.vert
@@ -0,0 +1,9 @@
+uniform mat3 proj;
+attribute vec2 pos;
+attribute vec2 texcoord;
+varying vec2 v_texcoord;
+
+void main() {
+ gl_Position = vec4(proj * vec3(pos, 1.0), 1.0);
+ v_texcoord = texcoord;
+}