#extension GL_EXT_gpu_shader4 : enable

#if __VERSION__ >= 130
  #define varying in
  out vec4 mgl_FragColor;
  #define texture2D texture
  #define gl_FragColor mgl_FragColor
#endif

#ifdef GL_ES 
precision mediump float; 
precision mediump int; 
#endif 

//varying vec2 		v_texCoord ;
uniform sampler2D 	s_texture0 ;

uniform vec2		u_tex_size ;
                           
void main (void) 
{
	// calc pixel position. 
	gl_FragColor = texture2D(s_texture0 , gl_FragCoord.xy / u_tex_size)  ;
} 
