diff options
author | Simon Ser <contact@emersion.fr> | 2022-10-27 16:05:50 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-10-28 13:49:03 +0200 |
commit | 4d04144b9254335c74f54c6e282904ec0c54c9dd (patch) | |
tree | 863bac9e96562cbe55fd1f879f2b20a5217ee512 /render/gles2/shaders/common.vert | |
parent | d69018c195d1bb8e6919e73a1709d03a9ae98f38 (diff) |
render/gles2: de-duplicate vertex shaders
The vertex shaders for quads and textures are identical.
Diffstat (limited to 'render/gles2/shaders/common.vert')
-rw-r--r-- | render/gles2/shaders/common.vert | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/render/gles2/shaders/common.vert b/render/gles2/shaders/common.vert new file mode 100644 index 00000000..9cebb458 --- /dev/null +++ b/render/gles2/shaders/common.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; +} |