istereo2
diff sdr/ui.p.glsl @ 6:3bccfc7d10fe
goatkit is drawing
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 23 Sep 2015 05:44:58 +0300 |
parents | |
children | a3c4fcc9f8f3 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/sdr/ui.p.glsl Wed Sep 23 05:44:58 2015 +0300 1.3 @@ -0,0 +1,14 @@ 1.4 +#ifdef GL_ES 1.5 +precision mediump float; 1.6 +#endif 1.7 + 1.8 +uniform sampler2D tex; 1.9 + 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 +}