istereo2

diff sdr/font.p.glsl @ 7:a3c4fcc9f8f3

- started a goatkit UI theme - font rendering with drawtext and shaders - asset manager (only used by drawtext for now, will replace respath eventually)
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 24 Sep 2015 06:49:25 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/font.p.glsl	Thu Sep 24 06:49:25 2015 +0300
     1.3 @@ -0,0 +1,15 @@
     1.4 +#ifdef GL_ES
     1.5 +precision mediump float;
     1.6 +#endif
     1.7 +
     1.8 +uniform sampler2D tex;
     1.9 +uniform vec4 ucolor;
    1.10 +
    1.11 +//varying vec4 vcolor;
    1.12 +varying vec2 vtexcoord;
    1.13 +
    1.14 +void main()
    1.15 +{
    1.16 +	vec4 texel = texture2D(tex, vtexcoord);
    1.17 +	gl_FragColor = vec4(ucolor.xyz, texel.a * ucolor.a);
    1.18 +}