print text

This commit is contained in:
Alessandro Mauri 2023-01-26 15:32:36 +01:00
parent 2c9b6e06fa
commit e0e89d0f2b
No known key found for this signature in database
GPG key ID: 2B7BF9531FF03BE8
5 changed files with 132 additions and 18 deletions

View file

@ -3,12 +3,15 @@
// use the input ("in") vertices from index zero
layout(location = 0) in vec2 position;
layout(location = 1) in vec4 color;
layout(location = 2) in vec2 uv;
flat out vec4 out_color;
out vec2 texture_coord;
void main()
{
// simply copy teh output position
gl_Position = vec4(position.x, position.y, 0.0f, 1.0f);
out_color = color;
texture_coord = uv;
}