istereo
annotate sdr/test.p.glsl @ 20:21d58290e634
forgot the cam files
author | John Tsiombikas <nuclear@mutantstargoat.com> |
---|---|
date | Wed, 07 Sep 2011 10:15:35 +0300 |
parents | 76ad575d72d0 |
children | 889dade25667 |
rev | line source |
---|---|
nuclear@5 | 1 #ifdef GL_ES |
nuclear@5 | 2 precision mediump float; |
nuclear@5 | 3 #endif |
nuclear@5 | 4 |
nuclear@14 | 5 uniform sampler2D tex; |
nuclear@14 | 6 |
nuclear@2 | 7 varying vec4 var_color; |
nuclear@14 | 8 varying vec2 var_texcoord; |
nuclear@2 | 9 |
nuclear@2 | 10 void main() |
nuclear@2 | 11 { |
nuclear@14 | 12 vec4 texel = texture2D(tex, var_texcoord); |
nuclear@14 | 13 texel.w = 1.0; |
nuclear@14 | 14 |
nuclear@14 | 15 gl_FragColor = var_color * texel; |
nuclear@2 | 16 } |