OSDN Git Service

[Qt][OpenGL] Initial support of OpenGL 4.3 Core profile.
[csp-qt/common_source_project-fm7.git] / source / src / qt / gui / gl4_3 / vertex_shader.glsl
1 //precision mediump float;
2 in mediump vec3 vertex;
3 in mediump vec2 texcoord;
4 out mediump vec2 v_texcoord;
5
6 uniform mat2 rotate_mat;
7 void main ()
8 {
9         vec2 xy = vertex.xy;
10         xy = rotate_mat * xy;
11         gl_Position = vec4(xy, vertex.z, 1.0);
12     v_texcoord = texcoord;
13 }
14