2 precision mediump float;
5 varying vec2 v_texcoord;
8 uniform int tex_height;
9 uniform sampler2D a_texture;
10 //attribute tex_size = vec2(tex_width, tex_height);
12 // This is from sample of Qt5 , see http://doc.qt.io/qt-5/qtopengl-cube-example.html .
15 // Set fragment color from texture
16 vec2 tex_pos = v_texcoord;
17 vec4 pixel_t = texture2D(a_texture, tex_pos);
20 pixel_r = pixel_t * color;
21 gl_FragColor = pixel_r;