istereo2

annotate sdr/ui.p.glsl @ 23:7d795dade0bc

first pass at android port... compiles!
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 03 Oct 2015 06:10:30 +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 }