diff options
author | Joe Wilm <joe@jwilm.com> | 2016-02-27 13:08:39 -0800 |
---|---|---|
committer | Joe Wilm <joe@jwilm.com> | 2016-02-27 13:08:39 -0800 |
commit | 77cfb7b5cd6ca7c6762d17371d0dcfadb8cf160f (patch) | |
tree | afe2dcd10c725ddeb5b672e3fff07600543508a2 /res | |
parent | eac2d01af4818e8ad2bb83d7e531221046da0b5a (diff) | |
download | alacritty-77cfb7b5cd6ca7c6762d17371d0dcfadb8cf160f.tar.gz alacritty-77cfb7b5cd6ca7c6762d17371d0dcfadb8cf160f.zip |
Implement per vertex struct
Diffstat (limited to 'res')
-rw-r--r-- | res/text.v.glsl | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/res/text.v.glsl b/res/text.v.glsl index 89bded5c..07a50376 100644 --- a/res/text.v.glsl +++ b/res/text.v.glsl @@ -1,11 +1,12 @@ #version 330 core -layout (location = 0) in vec4 vertex; +layout (location = 0) in vec2 position; +layout (location = 1) in vec2 uvMask; out vec2 TexCoords; uniform mat4 projection; void main() { - gl_Position = projection * vec4(vertex.xy, 0.0, 1.0); - TexCoords = vertex.zw; + gl_Position = projection * vec4(position.xy, 0.0, 1.0); + TexCoords = uvMask.xy; } |