3dphotoshoot

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