vrshoot
annotate sdr/font.p.glsl @ 1:e7ca128b8713
looks nice :)
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Feb 2014 00:35:22 +0200 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 uniform sampler2D tex; |
nuclear@0 | 2 uniform vec4 st_color; |
nuclear@0 | 3 |
nuclear@0 | 4 varying vec2 texcoord; |
nuclear@0 | 5 |
nuclear@0 | 6 void main() |
nuclear@0 | 7 { |
nuclear@0 | 8 gl_FragColor.rgb = st_color.rgb; |
nuclear@0 | 9 gl_FragColor.a = texture2D(tex, texcoord).a * st_color.a; |
nuclear@0 | 10 } |