istereo2

annotate sdr/font.p.glsl @ 9:64e15874f3bd

foo
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 26 Sep 2015 02:56:07 +0300
parents
children
rev   line source
nuclear@7 1 #ifdef GL_ES
nuclear@7 2 precision mediump float;
nuclear@7 3 #endif
nuclear@7 4
nuclear@7 5 uniform sampler2D tex;
nuclear@7 6 uniform vec4 ucolor;
nuclear@7 7
nuclear@7 8 //varying vec4 vcolor;
nuclear@7 9 varying vec2 vtexcoord;
nuclear@7 10
nuclear@7 11 void main()
nuclear@7 12 {
nuclear@7 13 vec4 texel = texture2D(tex, vtexcoord);
nuclear@7 14 gl_FragColor = vec4(ucolor.xyz, texel.a * ucolor.a);
nuclear@7 15 }