diff options
Diffstat (limited to 'Shaders/ui.vert')
-rw-r--r-- | Shaders/ui.vert | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Shaders/ui.vert b/Shaders/ui.vert new file mode 100644 index 0000000..b2fcba4 --- /dev/null +++ b/Shaders/ui.vert @@ -0,0 +1,14 @@ +attribute vec3 coord2d; +attribute vec2 tex_coord; + +uniform mat4 ortho; +uniform vec4 tex_color; + +varying vec2 texCoord; +varying vec4 color; + +void main(){ + texCoord = tex_coord; + color = tex_color; + gl_Position = ortho * vec4(coord2d.xyz, 1.0); +} |