text.vert
1 #version 450 2 3 layout (location = 0) in vec2 position; 4 layout (location = 1) in vec2 texture_uv; 5 layout (location = 1) out vec2 tex_coords; 6 7 layout (set = 0, binding = 0) readonly uniform ViewProj { 8 mat4 view; 9 mat4 proj; 10 }; 11 12 layout (push_constant) uniform pc { 13 mat4 model; 14 }; 15 16 void main() { 17 18 tex_coords = texture_uv; 19 20 gl_Position = proj * view * model * vec4(position, 0.0, 1.0); 21 22 }