3dphotoshoot

diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/sdr/android_cam_preview.p.glsl	Thu Jun 11 04:56:33 2015 +0300
     1.3 @@ -0,0 +1,12 @@
     1.4 +#extension GL_OES_EGL_image_external : require
     1.5 +precision mediump float;
     1.6 +
     1.7 +uniform samplerExternalOES tex;
     1.8 +
     1.9 +varying vec4 tex_coords;
    1.10 +
    1.11 +void main()
    1.12 +{
    1.13 +	vec4 texel = texture2D(tex, tex_coords.xy);
    1.14 +	gl_FragColor = vec4(texel.xyz, 1.0);
    1.15 +}