add initial text shaders

This commit is contained in:
Josh Holtrop 2014-06-17 22:53:44 -04:00
parent 27a167e97d
commit 031aa554cd
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
varying vec2 texture_coord_v;
uniform sampler2D texture;
uniform vec4 color;
void main(void)
{
gl_FragColor = vec4(1, 1, 1, texture2D(texture, texture_coord_v).a) * color;
}

View File

@ -0,0 +1,9 @@
attribute vec4 coords;
varying vec2 texture_coord_v;
void main(void)
{
gl_Position = vec4(coords.xy, 0, 1);
texture_coord_v = coords.zw;
}