TextRenderBackColor.vert 370 B

123456789101112131415161718192021
  1. #version 450
  2. layout (constant_id = 0) const bool InvertY = false;
  3. // Attributes
  4. layout(location=0) in vec3 a_position;
  5. layout(location=1) in vec4 a_color;
  6. layout(location=2) in vec2 a_texCoords0;
  7. // Uniforms
  8. layout(set=0,binding =0) uniform a_MatrixTransform
  9. {
  10. mat4x4 MatrixTransform;
  11. };
  12. void main()
  13. {
  14. gl_Position = MatrixTransform * vec4(a_position, 1.0);
  15. }