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

@ -1,10 +1,12 @@
#version 330
flat in vec4 out_color;
in vec2 texture_coord;
uniform sampler2D texture_sampler;
out vec4 color;
void main()
{
// set the color for each vertex to white
color = out_color;
color = texture(texture_sampler, texture_coord) + out_color;
}