3dphotoshoot

view 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
line source
1 precision mediump float;
3 uniform sampler2D tex;
4 uniform vec4 color;
6 varying vec4 tex_coords;
8 void main()
9 {
10 vec4 texel = texture2D(tex, tex_coords.xy);
11 gl_FragColor = vec4(color.xyz, texel.a);
12 }