istereo

view sdr/test.p.glsl @ 14:b39d8607f4bb

added textures
author John Tsiombikas <nuclear@mutantstargoat.com>
date Wed, 07 Sep 2011 09:03:51 +0300
parents 76ad575d72d0
children 889dade25667
line source
1 #ifdef GL_ES
2 precision mediump float;
3 #endif
5 uniform sampler2D tex;
7 varying vec4 var_color;
8 varying vec2 var_texcoord;
10 void main()
11 {
12 vec4 texel = texture2D(tex, var_texcoord);
13 texel.w = 1.0;
15 gl_FragColor = var_color * texel;
16 }