3dphotoshoot
annotate sdr/android_cam_preview.p.glsl @ 21:4ca4e3c5a754
port to C++ completed, shader programs now use the SdrProg class
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Thu, 11 Jun 2015 04:56:33 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@21 | 1 #extension GL_OES_EGL_image_external : require |
nuclear@21 | 2 precision mediump float; |
nuclear@21 | 3 |
nuclear@21 | 4 uniform samplerExternalOES tex; |
nuclear@21 | 5 |
nuclear@21 | 6 varying vec4 tex_coords; |
nuclear@21 | 7 |
nuclear@21 | 8 void main() |
nuclear@21 | 9 { |
nuclear@21 | 10 vec4 texel = texture2D(tex, tex_coords.xy); |
nuclear@21 | 11 gl_FragColor = vec4(texel.xyz, 1.0); |
nuclear@21 | 12 } |