vrshoot
diff sdr/font.p.glsl @ 0:b2f14e535253
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sat, 01 Feb 2014 19:58:19 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sdr/font.p.glsl Sat Feb 01 19:58:19 2014 +0200 1.3 @@ -0,0 +1,10 @@ 1.4 +uniform sampler2D tex; 1.5 +uniform vec4 st_color; 1.6 + 1.7 +varying vec2 texcoord; 1.8 + 1.9 +void main() 1.10 +{ 1.11 + gl_FragColor.rgb = st_color.rgb; 1.12 + gl_FragColor.a = texture2D(tex, texcoord).a * st_color.a; 1.13 +}