add initial text shaders

This commit is contained in:
josh committed 2014-06-17 22:53:44 -04:00
1 parent 27a167e97d
commit 031aa554cd
2 files changed
+18

No files matched your search

+9
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;
}
+9
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;
}