3dphotoshoot
annotate sdr/font.p.glsl @ 27:3d082c566b53
fixed all the bugs, pc version works
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 18 Jun 2015 04:32:25 +0300 |
parents | d7fe157c402d |
children |
rev | line source |
---|---|
nuclear@27 | 1 #ifdef GL_ES |
nuclear@27 | 2 precision lowp float; |
nuclear@27 | 3 #endif |
nuclear@22 | 4 |
nuclear@22 | 5 uniform sampler2D tex; |
nuclear@22 | 6 uniform vec4 color; |
nuclear@22 | 7 |
nuclear@22 | 8 varying vec4 tex_coords; |
nuclear@22 | 9 |
nuclear@22 | 10 void main() |
nuclear@22 | 11 { |
nuclear@22 | 12 vec4 texel = texture2D(tex, tex_coords.xy); |
nuclear@22 | 13 gl_FragColor = vec4(color.xyz, texel.a); |
nuclear@22 | 14 } |