print text
This commit is contained in:
parent
2c9b6e06fa
commit
e0e89d0f2b
5 changed files with 132 additions and 18 deletions
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue