3dphotoshoot

annotate sdr/font.p.glsl @ 26:a460b1e5af4a

added GLUT frontend
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 18 Jun 2015 03:55:05 +0300
parents
children 3d082c566b53
rev   line source
nuclear@22 1 precision mediump float;
nuclear@22 2
nuclear@22 3 uniform sampler2D tex;
nuclear@22 4 uniform vec4 color;
nuclear@22 5
nuclear@22 6 varying vec4 tex_coords;
nuclear@22 7
nuclear@22 8 void main()
nuclear@22 9 {
nuclear@22 10 vec4 texel = texture2D(tex, tex_coords.xy);
nuclear@22 11 gl_FragColor = vec4(color.xyz, texel.a);
nuclear@22 12 }