3dphotoshoot

diff sdr/font.p.glsl @ 22:d7fe157c402d

fonts
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 13 Jun 2015 05:32:07 +0300
parents
children 3d082c566b53
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/font.p.glsl	Sat Jun 13 05:32:07 2015 +0300
     1.3 @@ -0,0 +1,12 @@
     1.4 +precision mediump float;
     1.5 +
     1.6 +uniform sampler2D tex;
     1.7 +uniform vec4 color;
     1.8 +
     1.9 +varying vec4 tex_coords;
    1.10 +
    1.11 +void main()
    1.12 +{
    1.13 +	vec4 texel = texture2D(tex, tex_coords.xy);
    1.14 +	gl_FragColor = vec4(color.xyz, texel.a);
    1.15 +}