istereo2
annotate sdr/ui.p.glsl @ 8:661bf09db398
- replaced Quartz timer with cross-platform timer code
- protected goatkit builtin theme function from being optimized out
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 24 Sep 2015 07:09:37 +0300 |
parents | 3bccfc7d10fe |
children |
rev | line source |
---|---|
nuclear@6 | 1 #ifdef GL_ES |
nuclear@6 | 2 precision mediump float; |
nuclear@6 | 3 #endif |
nuclear@6 | 4 |
nuclear@6 | 5 uniform sampler2D tex; |
nuclear@7 | 6 uniform vec4 ucolor; |
nuclear@6 | 7 |
nuclear@7 | 8 //varying vec4 vcolor; |
nuclear@6 | 9 varying vec2 vtexcoord; |
nuclear@6 | 10 |
nuclear@6 | 11 void main() |
nuclear@6 | 12 { |
nuclear@6 | 13 vec4 texel = texture2D(tex, vtexcoord); |
nuclear@7 | 14 gl_FragColor = texel * ucolor; |
nuclear@6 | 15 } |