diff options
author | Will McKinnon <[email protected]> | 2022-11-10 01:32:28 -0500 |
---|---|---|
committer | Will McKinnon <[email protected]> | 2022-11-10 01:52:04 -0500 |
commit | 26271ef865bf5137d8b3491336fc9e7b97dfef10 (patch) | |
tree | f942bd0d334152a2f217840303251f1dd579738c /sway/desktop/shaders/quad.vert | |
parent | 79dfbb9f449ea29a890f818dd21a65d8c781d957 (diff) |
refactor: move shaders to individual files
Diffstat (limited to 'sway/desktop/shaders/quad.vert')
-rw-r--r-- | sway/desktop/shaders/quad.vert | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sway/desktop/shaders/quad.vert b/sway/desktop/shaders/quad.vert new file mode 100644 index 00000000..811e0f2d --- /dev/null +++ b/sway/desktop/shaders/quad.vert @@ -0,0 +1,12 @@ +uniform mat3 proj; +uniform vec4 color; +attribute vec2 pos; +attribute vec2 texcoord; +varying vec4 v_color; +varying vec2 v_texcoord; + +void main() { + gl_Position = vec4(proj * vec3(pos, 1.0), 1.0); + v_color = color; + v_texcoord = texcoord; +} |