istereo2

view sdr/font.p.glsl @ 26:64ca672a79dc

fixed orientation to either left or right landscape
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 05 Oct 2015 06:11:54 +0300
parents
children
line source
1 #ifdef GL_ES
2 precision mediump float;
3 #endif
5 uniform sampler2D tex;
6 uniform vec4 ucolor;
8 //varying vec4 vcolor;
9 varying vec2 vtexcoord;
11 void main()
12 {
13 vec4 texel = texture2D(tex, vtexcoord);
14 gl_FragColor = vec4(ucolor.xyz, texel.a * ucolor.a);
15 }