istereo2
diff sdr/ui.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 | 3bccfc7d10fe |
children |
line diff
1.1 --- a/sdr/ui.p.glsl Wed Sep 23 05:44:58 2015 +0300 1.2 +++ b/sdr/ui.p.glsl Thu Sep 24 06:49:25 2015 +0300 1.3 @@ -3,12 +3,13 @@ 1.4 #endif 1.5 1.6 uniform sampler2D tex; 1.7 +uniform vec4 ucolor; 1.8 1.9 -varying vec4 vcolor; 1.10 +//varying vec4 vcolor; 1.11 varying vec2 vtexcoord; 1.12 1.13 void main() 1.14 { 1.15 vec4 texel = texture2D(tex, vtexcoord); 1.16 - gl_FragColor = vcolor * texel; 1.17 + gl_FragColor = texel * ucolor; 1.18 }