vert_post.glsl (279B)
1 #version 460 core 2 3 in vec2 position; 4 5 uniform mat4 u_Pmat; 6 uniform vec2 u_vertscale; 7 8 out VS_OUT { 9 vec2 tex_coord; 10 } vs_out; 11 12 void main() 13 { 14 vec2 pos = position.xy; 15 vec2 scale = u_vertscale; 16 17 gl_Position = u_Pmat * vec4(pos * scale, 0.0, 1.0); 18 19 vs_out.tex_coord = pos; 20 }